class documentation
class PropertyControl(BaseModel): (source)
The data required for creating an propertyControl in Vue.
| Class Variable | broken |
If True the property control is broken. There is no corresponding property. |
| Class Variable | element |
Undocumented |
| Class Variable | input |
The style of the control. |
| 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. |
The style of the control.
Default - A standard input box. DurationHMS - Duration in hours mins and seconds.
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.