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.
| Parameter | Description |
|---|---|
value | The currently selected enum value. |
onChanged | Callback invoked on every selection change. |
label | Optional label text shown beside the field. |
key | An 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