Class
TelerikTextBox

The Telerik TextBox class.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class TelerikTextBox : TextBoxBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikInputBase<string>TextBoxBaseTelerikTextBox

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members TextBoxBase.OnParametersSetAsync()TextBoxBase.OnAfterRenderAsync(bool)TextBoxBase.Dispose()TextBoxBase.InitJsComponentAsync()TextBoxBase.OnParametersSetInternalAsync()TextBoxBase.OnAfterRenderInternalAsync(bool)TextBoxBase.TitleTextBoxBase.PlaceholderTextBoxBase.WidthTextBoxBase.NameTextBoxBase.DebounceDelayTextBoxBase.ReadOnlyTextBoxBase.AutoCapitalizeTextBoxBase.SpellCheckTelerikInputBase<string>.SetParametersAsync(ParameterView)TelerikInputBase<string>.OnInitializedAsync()TelerikInputBase<string>.FocusAsync()TelerikInputBase<string>.CascadedEditContextTelerikInputBase<string>.FloatingLabelTelerikInputBase<string>.IdTelerikInputBase<string>.EnabledTelerikInputBase<string>.TabIndexTelerikInputBase<string>.ValueExpressionTelerikInputBase<string>.ValueChangedTelerikInputBase<string>.ValueTelerikInputBase<string>.OnChangeTelerikInputBase<string>.OnBlurTelerikInputBase<string>.AriaLabelTelerikInputBase<string>.AriaLabelledByTelerikInputBase<string>.AriaDescribedByTelerikInputBase<string>.ValidateOnBaseComponent.ShouldRender()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)

Constructors

TelerikTextBox()

Declaration

cs-api-definition
public TelerikTextBox()

Properties

AutoComplete

Defines the autocomplete HTML attribute of the component.

Declaration

cs-api-definition
[Parameter]
public string AutoComplete { get; set; }

Property Value

string

FillMode

Specifies the fill mode of the TextBox. Default value is Solid.

Declaration

cs-api-definition
[Parameter]
public override string FillMode { get; set; }

Property Value

string

Overrides TextBoxBase.FillMode

InputMode

Defines the inputmode HTML attribute of the TextBox.

Declaration

cs-api-definition
[Parameter]
public string InputMode { get; set; }

Property Value

string

MaxLength

Defines the maxLength HTML attribute of the component.

Declaration

cs-api-definition
[Parameter]
public int? MaxLength { get; set; }

Property Value

int?

Password

Defines if the characters in the TextBox should be masked out.

Declaration

cs-api-definition
[Parameter]
public bool Password { get; set; }

Property Value

bool

Rounded

Specifies the roundness of the TextBox. Default value is Medium.

Declaration

cs-api-definition
[Parameter]
public override string Rounded { get; set; }

Property Value

string

Overrides TextBoxBase.Rounded

ShowClearButton

Specifies whether the clear button should be displayed.

Declaration

cs-api-definition
[Parameter]
public bool ShowClearButton { get; set; }

Property Value

bool

ShowPrefixSeparator

Defines whether the prefix separator should be shown. The default value is true.

Declaration

cs-api-definition
[Parameter]
public bool ShowPrefixSeparator { get; set; }

Property Value

bool

ShowSuffixSeparator

Defines whether the suffix separator should be shown. The default value is true.

Declaration

cs-api-definition
[Parameter]
public bool ShowSuffixSeparator { get; set; }

Property Value

bool

Size

Specifies the Size of the text TextBox. Default value is Medium.

Declaration

cs-api-definition
[Parameter]
public override string Size { get; set; }

Property Value

string

Overrides TextBoxBase.Size

TextBoxPrefixTemplate

The content of the TextBox prefix.

Declaration

cs-api-definition
[Parameter]
public RenderFragment TextBoxPrefixTemplate { get; set; }

Property Value

RenderFragment

TextBoxSuffixTemplate

The content of the TextBox suffix.

Declaration

cs-api-definition
[Parameter]
public RenderFragment TextBoxSuffixTemplate { get; set; }

Property Value

RenderFragment

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnInput(ChangeEventArgs)

Declaration

cs-api-definition
public void OnInput(ChangeEventArgs args)

Parameters

args

ChangeEventArgs