Skip to Content
API ReferenceFrameSlider

FrameSlider

A numeric range slider. Maps to a UIToolkit Slider.

Constructor

FrameSlider

Creates an FrameSlider element.

ParameterDescription
valueThe current slider value. Clamped to [min, max] by UIToolkit.
minThe minimum value of the range.
maxThe maximum value of the range.
onChangedCallback invoked on every value change.
labelOptional label text shown beside the slider.
keyAn optional key for reconciliation identity.

Properties

Label

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

Max

The maximum value of the slider range.

Min

The minimum value of the slider range.

OnChanged

Callback invoked whenever the slider value changes. Receives the new float value as its argument.

Value

The current value of the slider.

Methods

ShouldRebuild

Last updated on