Checkbox
A checkbox control that represents a binary checked/unchecked state. Semantically distinct from FrameToggle, which is a general on/off switch. Maps to a UIToolkit Toggle.
Constructor
Checkbox
Creates an Checkbox element.
| Parameter | Description |
|---|---|
value | The current checked state. |
onChanged | Callback invoked on every state change. |
label | Optional label text shown beside the checkbox. |
key | An optional key for reconciliation identity. |
Properties
Label
An optional text label displayed alongside the checkbox. Null means no label is shown.
OnChanged
Callback invoked whenever the checked state changes. Receives the new boolean value as its argument.
Value
The current checked state of the checkbox.
Methods
ShouldRebuild
Last updated on