TextInput
This documentation provides a comprehensive reference for the TextInput
component, guiding you through its configuration options.
Parameters #
Name | Type | Default | Required | Description | Added Version |
---|---|---|---|---|---|
AutoComplete | bool | False | If true, TextInput can complete the values automatically by the browser. |
1.0.0 | |
BindEvent | BindEvent | OnChange | Gets or sets the input bind event. | 1.0.0 | |
Class | string | null | Gets or sets the CSS class name(s) to apply to the component. | 1.0.0 | |
Color | TextInputColor | None | Gets or sets the color. | 1.0.0 | |
Disabled | bool | False | Gets or sets the disabled state. | 1.0.0 | |
Id | string | null | Gets or sets the ID. If not set, a unique ID will be generated. | 1.0.0 | |
IsRounded | bool | False | If true, the rounded variant will be enabled. | 1.0.0 | |
MaxLength | int? | null | Gets or sets the maximum number of characters that can be entered. | 1.0.0 | |
Placeholder | string | null | Gets or sets the placeholder text. | 1.0.0 | |
Size | TextInputSize | None | Gets or sets the size. | 1.0.0 | |
State | TextInputState | None | Gets or sets the state. | 1.0.0 | |
Style | string | null | Gets or sets the CSS style string that defines the inline styles for the component. | 1.0.0 | |
TextAlignment | TextAlignment | None | Gets or sets the text alignment. | 1.0.0 | |
Value | string | null | Gets or sets the value. | 1.0.0 | |
ValueExpression | Expression<Func<string>>? | null | Gets or sets the expression. | 1.0.0 |
Methods #
Name | Return type | Description | Added Version |
---|---|---|---|
Disable() | Void | Disables the TextInput . |
1.0.0 |
Enable() | Void | Enables the TextInput . |
1.0.0 |
Events #
Name | Return Type | Description | Added Version |
---|---|---|---|
ValueChanged | EventCallback<string> | This event fires when the TextInput value changes. |
1.0.0 |