Skip to Content
API ReferenceEnumField

EnumField

A dropdown field bound to a C# enum type, displaying all enum values as options. Maps to UIToolkit’s EnumField.

Constructor

EnumField

Creates an EnumField element.

ParameterDescription
valueThe currently selected enum value.
onChangedCallback invoked on every selection change.
labelOptional label text shown beside the field.
keyAn optional key for reconciliation identity.

Properties

Label

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

OnChanged

Callback invoked whenever the selected value changes. Receives the new enum value as its argument.

Value

The currently selected enum value.

Last updated on