Class
TelerikInputBase<T>

Definition

Namespace:Telerik.Blazor.Components.Common

Assembly:Telerik.Blazor.dll

Type Parameters:

T

Syntax:

public class TelerikInputBase<T> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikInputBase<T>

Derived Classes: ColorEditorBaseTelerikPickerBase<T>TextBoxBaseTelerikCheckBox<TValue>TelerikColorPaletteTelerikDateInput<T>TelerikEditorTelerikNumericTextBox<T>TelerikSwitch<TValue>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnAfterRenderAsync(bool)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>)ComponentBase.DisExceptionAsync(Exception)

Constructors

TelerikInputBase()

Declaration

public TelerikInputBase()

Properties

AriaDescribedBy

Defines the aria-describedby attribute for the component.

Declaration

[Parameter]
public string AriaDescribedBy { get; set; }

Property Value

string

AriaLabel

Describe the aria-label attribute for the component.

Declaration

[Parameter]
public string AriaLabel { get; set; }

Property Value

string

AriaLabelledBy

Describe the aria-labelledby attribute for the component.

Declaration

[Parameter]
public string AriaLabelledBy { get; set; }

Property Value

string

CascadedEditContext

Declaration

[CascadingParameter]
public EditContext CascadedEditContext { get; set; }

Property Value

EditContext

Enabled

Specifies if the Component accepts user interaction and value changes. The default value is "true".

Declaration

[Parameter]
public bool Enabled { get; set; }

Property Value

bool

FloatingLabel

Declaration

[CascadingParameter]
public TelerikFloatingLabel FloatingLabel { get; set; }

Property Value

TelerikFloatingLabel

Id

Specifies the id of the Component.

Declaration

[Parameter]
public string Id { get; set; }

Property Value

string

InputMode

Specifies the inputmode attribute of the underlying HTML input element.

Declaration

[Parameter]
public string InputMode { get; set; }

Property Value

string

OnBlur

Fires when the component loses focus.

Declaration

[Parameter]
public virtual EventCallback OnBlur { get; set; }

Property Value

EventCallback

OnChange

Specifies the callback that's called when the current value is committed (confirmed) by the user - either through the Enter key, or when the Component loses focus.

Declaration

[Parameter]
public virtual EventCallback<object> OnChange { get; set; }

Property Value

EventCallback<object>

TabIndex

Maps to the tabindex attribute of the element. Use it to customize the tabbing focus order on the page.

Declaration

[Parameter]
public int? TabIndex { get; set; }

Property Value

int?

ValidateOn

Defines the event which specifies when validation is triggered.

Declaration

[Parameter]
public ValidationEvent ValidateOn { get; set; }

Property Value

ValidationEvent

Value

Specifies the value of the input. Used with two-way binding.

Declaration

[Parameter]
public virtual T Value { get; set; }

Property Value

T

ValueChanged

Specifies the callback that's called when the value changes.

Declaration

[Parameter]
public EventCallback<T> ValueChanged { get; set; }

Property Value

EventCallback<T>

ValueExpression

Specifies the expression that identifies the bound value.

Declaration

[Parameter]
public Expression<Func<T>> ValueExpression { get; set; }

Property Value

Expression<Func<T>>

Methods

Dispose()

Declaration

public override void Dispose()

Overrides BaseComponent.Dispose()

Implements IDisposable.Dispose()

FocusAsync()

Moves focus to the component.

Declaration

public virtual Task FocusAsync()

Returns

Task

OnInitializedAsync()

Declaration

protected override Task OnInitializedAsync()

Returns

Task

Overrides BaseComponent.OnInitializedAsync()

OnParametersSetAsync()

Declaration

protected override Task OnParametersSetAsync()

Returns

Task

Overrides ComponentBase.OnParametersSetAsync()

SetParametersAsync(ParameterView)

Declaration

public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters

ParameterView

Returns

Task

Overrides ComponentBase.SetParametersAsync(ParameterView)