⌂
›
Reference
›
Checkbox
Checkbox
A boolean input control for toggled state.
Example
checkbox(
label: "Enable notifications",
value: true
)
Common properties
labelvalueon_changedisabled
Usage
checkbox(
label: "I agree",
value: accepted,
on_change: ->(e) { accepted = e.data == "true" }
)
Notes
on_changeis used when the checked state should update app state