type

Checkbox

src @Js
class Checkbox : Elem

Checkbox displays a checkbox that can be toggled on and off.

See also: docDomkit

constructors

fields

checked

Value of checked.

indeterminate

Get or set indeterminate flag.

methods

onAction

Callback when state is toggled.

wrap

Wrap this checkbox with content that can also be clicked to toggle checkbox.

Slot Details

checked

src Bool checked

Value of checked.

indeterminate

src Bool indeterminate

Get or set indeterminate flag.

make

src new make()

onAction

src Void onAction(|This| f)

Callback when state is toggled.

wrap

src Elem wrap(Obj content)

Wrap this checkbox with content that can also be clicked to toggle checkbox.