class domkit::ToggleButton
sys::Obj dom::Elem domkit::Button domkit::ToggleButton
@Js
ToggleButton models a boolean state toggled by pressing a button.
- elemOff
-
Obj? elemOff := null
Optional content to display when not selected. If the argument is not an
Elem
instance, one will be created with text content usingtoStr
. - elemOn
-
Obj? elemOn := null
Optional content to display when selected. If the argument is not an
Elem
instance, one will be created with text content usingtoStr
. - make
-
new make()
- selected
-
Bool selected := false
Toggle selection state.