[Control] checkBox

Part of: mobl::ui::generic


  • b : Bool the boolean expression to bind to.
  • label : String = "" a label to be rendered along the side of the checkbox (can also be tapped to toggle)
  • onchange : Callback a callback to be triggered when the checkBox's value changes.

A checkBox control.


var b = false
checkBox(b, label="want b")
checkBox(t.done, label=t.name)
mobl/ui/generic/checkbox.txt · Last modified: 2020/02/11 10:14 by Zef Hemel