Skip to content

Switch

The switch is a component that accepts a boolean value (true/false).

Property

NoItemInput ValueDefault ValueAction PropertyTypeAction Default ValueDescription
1IDStringAuto-generatedidstringAuto-generatedThe [id] property cannot be set by actions.
2LabelStringSwitchlabelstringSwitchComponent label
3WidthString222widthstring222Component width
4HeightString40heightstring40Component height
5XStringxstringX coordinate position
6YStringystringY coordinate position
7ColorString
Color Picker
colorstringComponent color
8Background ColorString
Color Picker
backgroundColorstringBackground color
9Label ColorString
Color Picker
labelColorstringLabel color
10DisabledBooleanOFFdisabledbooleanfalseDisabled state
11Read OnlyBooleanOFFreadOnlybooleanfalseRead-only state
12VisibilityBooleanONvisibilitybooleantrueComponent show/hide
13Horizontal AlignmentSelection
1. Left
2. Center
3. Right
LefthorizontalAlignmentstringleftHorizontal alignment
14Vertical AlignmentSelection
1. Top
2. Center
3. Bottom
TopverticalAlignmentstringtopVertical alignment
15Helper TextStringhelperTextstringHelper text
16ValueSelection
1.OFF
2.ON
OFFvaluebooleanfalseSwitch value
17ErrorerrorbooleanError state
18Change EventSelection
1. None
2. Action
NoneEvent on value change

Event

Event nameDescription
onchangeOccurs when a value change is made.