Skip to main content

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.

switch.jpg

Private Properties​

Parameters
Description
Default value
Data SourceConfigurable data source optional values: ON, OFFOFF
View modeOptional values: Color, PictureColor
OnConfigure colors/images based on display methodColor:#0066ff
OffConfigure colors/images based on display methodColor:#AFB8BD

Node​

Parameters
Description
Default value
WidthOverall width100
HeightOverall height50
XHorizontal coordinate—
YVertical coordinate—