Skip to main content

Switch

Overview​

A visible component to handle switch actions

Component Properties​

PropertyDescription
onThe text that is displayed next to radio button.
textIt is used to pre-select a radio button by default.

Blocks​

Events​

On State Changed​

Triggers when the switch state changed

loading block...

variabletypedescription
stateBooleanThe current switch state, if on returns true, else returns false.

Properties​

checked​

Accepts: Boolean

sets the checked state to on or off

loading block...

checked​

Returns: Boolean

gets the checked state

loading block...

text​

Accepts: String

sets the switch text

loading block...

text​

Returns: String

gets the text

loading block...

hide​

Accepts: Boolean

Hides the component if the input is true and shows it if the input is false

loading block...

hidden​

Returns: Boolean

Returns true if the component is hidden and false if it is not

loading block...