Skip to main content
Also has everything from ElementHandle. An on / off switch. Value is a boolean. Saved when created with a non-nil key.

Creation


SetState

Same as SetValue(value).

Toggle

Flip the current value and fire OnChange.

Example