Try Install Learn Blog API Packages GitHub
Pages
mint-ui

Search
Basic information
Entities
Versions
Dependencies
mint-color 0.9.0 <= v < 1.0.0

Ui.Toggle

A toggle component.

Properties

checked
:
Bool
=
false

Whether or not the toggle is checked.

disabled
:
Bool
=
false

Whether or not the toggle is disabled.

offLabel
:
String
=
"OFF"

The label for the false position.

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

The change event handler.

onLabel
:
String
=
"ON"

The label for the true position.

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

The size of the component.

width
:
Ui.Size
=
Ui.Size::Em(5.5)

The width of the component.

Functions

render
:
Html

Renders the component.

toggle
:
Promise(Void)

Toggles the component.