Options for server specified property control allow different values and display names
This commit is contained in:
parent
5ae0f903d8
commit
88c087b8dd
3 changed files with 21 additions and 10 deletions
|
|
@ -83,11 +83,11 @@ class PropertyControl(BaseModel):
|
|||
read_back_delay: int = 1000
|
||||
"""The delay in ms before reading back the property."""
|
||||
|
||||
options: Optional[list[str]] = None
|
||||
"""A list of options to pass to the UI for a dropdown.
|
||||
options: Optional[dict[str, str | int | float | bool]] = None
|
||||
"""A mapping of UI display name to value use for creating a dropdown.
|
||||
|
||||
These options aren't validated in the UI in any way, and invalid
|
||||
settings will only be rejected when selected.
|
||||
These options aren't validated here in any way. Any invalid values will be rejected
|
||||
when selected.
|
||||
"""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue