Class RadzenTextBox
An input component for single line text entry.
Inheritance
System.Object
FormComponent<System.String>
FormComponentWithAutoComplete<System.String>
RadzenTextBox
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenTextBox : FormComponentWithAutoComplete<string>, IDisposable, IRadzenFormComponent
Examples
<RadzenTextBox @bind-Value=@value Change=@(args => Console.WriteLine($"Value: {args}")) />
Properties
MaxLength
Gets or sets the maximum allowed text length.
Declaration
public long? MaxLength { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int64> | The maximum length. |
ReadOnly
Gets or sets a value indicating whether is read only.
Declaration
public bool ReadOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Trim
Specifies whether to remove any leading or trailing whitespace from the value. Set to false
by default.
Declaration
public bool Trim { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
GetId()
Gets the unique identifier.
Declaration
protected override string GetId()
Returns
Type | Description |
---|---|
System.String | Returns the |
Overrides
OnChange(ChangeEventArgs)
Handles change event of the built-in input
elementt.
Declaration
protected async Task OnChange(ChangeEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ChangeEventArgs | args |
Returns
Type | Description |
---|---|
Task |
Implements
IDisposable