class domkit::ToggleButton

sys::Obj
  dom::Elem
    domkit::Button
      domkit::ToggleButton

@Js

ToggleButton models a boolean state toggled by pressing a button.

See also: pod doc, 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 using toStr.

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 using toStr.

make

new make()

selected

Bool selected := false

Toggle selection state.