Switch
The switch component can be used to display and control the state of a certain property of a device (such as the power switch of a device), or to display the state of the data value returned by an interface.This article introduces the detailed configuration method of the switch component.
Private Properties
Parameters | Description | Default value |
---|---|---|
Data Source | Configurable data source optional values: ON, OFF | OFF |
View mode | Optional values: Color, Picture | Color |
On | Configure colors/images based on display method | Color:#0066ff |
Off | Configure colors/images based on display method | Color:#AFB8BD |
Node
Parameters | Description | Default value |
---|---|---|
Width | Overall width | 100 |
Height | Overall height | 50 |
X | Horizontal coordinate | — |
Y | Vertical coordinate | — |