TextField
A single-line or multi-line text input field. Maps to a UIToolkit TextField.
Constructor
TextField
Creates an TextField element.
| Parameter | Description |
|---|---|
value | The current text value. |
onChanged | Callback invoked on every value change. |
placeholder | Optional placeholder text shown when the field is empty. |
readOnly | When true the field is not editable. |
multiline | When true the field accepts multiple lines. |
key | An optional key for reconciliation identity. |
Properties
Multiline
Whether the field accepts multiple lines of text.
OnChanged
Callback invoked whenever the text value changes. Receives the new string value as its argument.
Placeholder
Placeholder text shown when the field is empty. Null means no placeholder is displayed.
ReadOnly
Whether the field is read-only. When true the user cannot edit the value.
Value
The current text value displayed in the field.
Methods
ShouldRebuild
Last updated on