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