Class TextField
Text Field UI element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class TextField : ExVisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IValidatableElement<string>, INotifyValueChanging<string>, INotifyValueChanged<string>
Constructors
| Name | Description |
|---|---|
| TextField() | Default constructor. |
| TextField(string) | Construct a TextField with a predefined text value.
|
Fields
| Name | Description |
|---|---|
| inputContainerUssClassName | The TextField input container styling class. |
| inputUssClassName | The TextField input styling class. |
| leadingContainerUssClassName | The TextField leading container styling class. |
| leadingIconUssClassName | The TextField leading icon styling class. |
| placeholderUssClassName | The TextField placeholder styling class. |
| sizeUssClassName | The TextField size styling class. |
| trailingContainerUssClassName | The TextField trailing container styling class. |
| trailingIconUssClassName | The TextField trailing icon styling class. |
| ussClassName | The TextField main styling class. |
Properties
| Name | Description |
|---|---|
| contentContainer | The content container of the TextField. |
| invalid | The invalid state of the TextField. |
| leadingElement | The TextField leading element. |
| leadingIconName | The leading icon name. |
| placeholder | The TextField placeholder text. |
| size | The TextField size. |
| trailingElement | The TextField trailing element. |
| trailingIconName | The trailing icon name. |
| validateValue | The validation function for the TextField. |
| value | The TextField value. |
Methods
| Name | Description |
|---|---|
| SetValueWithoutNotify(string) | Set the TextField value without notifying the change. |