class domkit::ToggleButton

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

@Js

Source

ToggleButton models a boolean state toggled by pressing a button.

See also: docDomkit, Button

elemOff

Obj? elemOff := null

Source

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

Source

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()

Source

selected

Bool selected := false

Source

Toggle selection state.