Class RadzenTextBox
An input component for single line text entry.
public class RadzenTextBox : FormComponentWithAutoComplete<string>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRadzenFormComponent
- Inheritance
-
RadzenTextBox
- Implements
- Inherited Members
Examples
<RadzenTextBox @bind-Value=@value Change=@(args => Console.WriteLine($"Value: {args}")) />
Constructors
RadzenTextBox()
public RadzenTextBox()
Properties
MaxLength
Gets or sets the maximum allowed text length.
[Parameter]
public long? MaxLength { get; set; }
Property Value
- long?
The maximum length.
ReadOnly
Gets or sets a value indicating whether is read only.
[Parameter]
public bool ReadOnly { get; set; }
Property Value
- bool
true
if is read only; otherwise,false
.
Trim
Specifies whether to remove any leading or trailing whitespace from the value. Set to false
by default.
[Parameter]
public bool Trim { get; set; }
Property Value
- bool
true
if trimming is enabled; otherwise,false
.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
GetComponentCssClass()
protected override string GetComponentCssClass()
Returns
GetId()
protected override string GetId()
Returns
OnChange(ChangeEventArgs)
Handles change event of the built-in input
elementt.
protected Task OnChange(ChangeEventArgs args)
Parameters
args
ChangeEventArgs