Try Install Learn Blog API Packages GitHub
Pages

Ui.Checkbox

A simple checkbox component.

Properties

checked
:
Bool
=
false

Whether or not the checkbox is checked.

disabled
:
Bool
=
false

Whether or not the checkbox is disabled.

onChange
:
Function(Bool, Promise(Void))
=
Promise.never1

The handler for the change event.

size
:
Ui.Size
=
Ui.Size::Inherit

The size of the checkbox.

Functions

focus
:
Promise(Void)

Focuses the checkbox.

render
:
Html

Renders the checkbox.

toggle
:
Promise(Void)

Toggles the checkbox.