value


valueboolean

Sets or gets the value of the switch state.

Setting the value property to true toggles the switch to the on position. Setting it to false toggles the switch to the off position.

Getting the value property returns true when the switch is on, and false when the switch is off.

Was this helpful?
Yes
No