Switch

Switch is a simple UI widget you can use when you want users to make a binary choice.

Internal Property

Description

isSwitchedOn

This value is a boolean that is set to true if the switch is turned on.

isDisabled

This value is a boolean that is set to true if the switch is disabled.

isVisible

This value is a boolean that is set to true if the switch is set as visbile.

Property

Description

Label

Sets the label of the switch.

Alignment

Sets the alignment of the widget.

Default Selected

Sets a default option that will be captured as user input unless it is changed by the user.

Visible

Controls widget's visibility on the page. When turned off, the widget will not be visible when the app is published

Disabled

Disables input to the widget. The widget will remain visible to the user but user input will not be allowed.

Action

Description

onChange

Sets the action to be run when the user toggles the switch. See a list of supported actions