Class
TextBoxBase

The base class for textbox components.

Definition

Namespace:Telerik.Blazor.Components.Common

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public abstract class TextBoxBase : TelerikInputBase<string>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikInputBase<string>TextBoxBase

Derived Classes: TelerikMaskedTextBoxTelerikTextAreaTelerikTextBox

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members TelerikInputBase<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.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)

Constructors

TextBoxBase()

Declaration

cs-api-definition
protected TextBoxBase()

Properties

AutoCapitalize

Defines the inputmode HTML attribute of the component. Support and behavior depends on the browser.

Declaration

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

Property Value

string

DebounceDelay

Time in ms between last typed symbol and the updating of the value. Default is 150ms.

Declaration

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

Property Value

int

FillMode

Declaration

cs-api-definition
public abstract string FillMode { get; set; }

Property Value

string

Name

Defines the name HMTL attribute of the TextBox.

Declaration

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

Property Value

string

Placeholder

Defines the placeholder HTML attribute of the component.

Declaration

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

Property Value

string

ReadOnly

The parameter is used to specify if the input field should be read-only. When set to true, the input becomes non-editable.

Declaration

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

Property Value

bool

Rounded

Declaration

cs-api-definition
public abstract string Rounded { get; set; }

Property Value

string

Size

Declaration

cs-api-definition
public abstract string Size { get; set; }

Property Value

string

SpellCheck

Defines the spellcheck HTML attribute of the component. Support and behavior depends on the user environment.

Declaration

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

Property Value

string

Title

Defines the title HTML attribute of the component.

Declaration

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

Property Value

string

Width

Defines the width of the Component as a CSS value.

Declaration

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

Property Value

string

Methods

Dispose()

Declaration

cs-api-definition
public override void Dispose()

Overrides TelerikInputBase<string>.Dispose()

InitJsComponentAsync()

Declaration

cs-api-definition
protected Task InitJsComponentAsync()

Returns

Task

OnAfterRenderAsync(bool)

Declaration

cs-api-definition
protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender

bool

Returns

Task

Overrides BaseComponent.OnAfterRenderAsync(bool)

OnAfterRenderInternalAsync(bool)

Declaration

cs-api-definition
protected virtual Task OnAfterRenderInternalAsync(bool firstRender)

Parameters

firstRender

bool

Returns

Task

OnParametersSetAsync()

Declaration

cs-api-definition
protected override Task OnParametersSetAsync()

Returns

Task

Overrides TelerikInputBase<string>.OnParametersSetAsync()

OnParametersSetInternalAsync()

Declaration

cs-api-definition
protected virtual Task OnParametersSetInternalAsync()

Returns

Task