Skip to Content
API ReferenceFrameToggle

FrameToggle

A boolean toggle (checkbox). Maps to a UIToolkit Toggle.

Constructor

FrameToggle

Creates an FrameToggle element.

ParameterDescription
valueThe current checked state.
onChangedCallback invoked on every state change.
labelOptional label text shown beside the toggle.
keyAn optional key for reconciliation identity.

Properties

Label

An optional text label displayed alongside the toggle. Null means no label is shown.

OnChanged

Callback invoked whenever the toggle state changes. Receives the new boolean value as its argument.

Value

The current checked state of the toggle.

Methods

ShouldRebuild

Last updated on