Search.../

checked

Sets or gets the state of the toggle switch.

Description

Setting the checked property to true turns the toggle switch on. Setting it to false turns the toggle switch off.

Type:

booleanRead & Write

Was this helpful?

Get whether the dashboard toggle switch is on

Copy Code
1let isChecked = $w('#mySwitch').checked; // true
Set the dashboard toggle switch on

Copy Code
1$w('#mySwitch').checked = true;
Set the dasbhoard toggle switch off

Copy Code
1$w('#mySwitch').checked = false;