Skip to Content

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.

ParameterDescription
valueThe current checked state.
onChangedCallback invoked on every state change.
labelOptional label text shown beside the checkbox.
keyAn 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