class documentation
class PropertyControl(BaseModel): (source)
The data required for creating an actionButton in Vue.
Currently this cannot be used to submitData, or to submitOnEvent.
| Class Variable | element |
Undocumented |
| Class Variable | label |
The label to show in the UI |
| Class Variable | options |
A mapping of UI display name to value, used for creating a dropdown. |
| Class Variable | property |
The name of the property (or setting). |
| Class Variable | read |
Whether or not to read back the property after setting. |
| Class Variable | read |
The delay in ms before reading back the property. |
| Class Variable | step |
The step size for a numerical input. |
| Class Variable | thing |
The Thing "path" for the Thing instance. |
A mapping of UI display name to value, used for creating a dropdown.
These options aren't validated here in any way. Any invalid values will be rejected when selected.
Whether or not to read back the property after setting.
This is useful for hardware settings that may be coerced to the closest value.