A labelled checkbox row: label on the left, accent check square on the right (or standalone
square when the label is empty). Clicking anywhere on the row toggles; onChange(checked)
fires after the flip.
Constructor
new(label:String, width:Float, checked:Bool = false, ?onChange:Bool ‑> Void)
Parameters:
label | the row text (empty string = standalone check square) |
|---|---|
width | layout width (the check square sits at the right edge) |
checked | the initial state |
onChange | fired after the state flips |
Variables
Methods
localize(key:String, fallback:String):Void
Switches the label to a localized string.
Parameters:
key | the translation key |
|---|---|
fallback | the source-language text |