Class
TelerikNumericTextBox<T>

The class for the Numeric Textbox component.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

T

The type of the object passed/bound to the Value property.

Syntax:

cs-api-definition
public class TelerikNumericTextBox<T> : TelerikInputBase<T>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikInputBase<T>TelerikNumericTextBox<T>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members TelerikInputBase<T>.OnInitializedAsync()TelerikInputBase<T>.FocusAsync()TelerikInputBase<T>.CascadedEditContextTelerikInputBase<T>.FloatingLabelTelerikInputBase<T>.IdTelerikInputBase<T>.EnabledTelerikInputBase<T>.TabIndexTelerikInputBase<T>.ValueExpressionTelerikInputBase<T>.ValueChangedTelerikInputBase<T>.ValueTelerikInputBase<T>.OnChangeTelerikInputBase<T>.OnBlurTelerikInputBase<T>.AriaLabelTelerikInputBase<T>.AriaLabelledByTelerikInputBase<T>.AriaDescribedByTelerikInputBase<T>.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.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)

Constructors

TelerikNumericTextBox()

Declaration

cs-api-definition
public TelerikNumericTextBox()

Properties

Arrows

Specifies whether the increment and decrement arrows will be displayed.

Declaration

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

Property Value

bool

AutoComplete

Specifies the autocomplete attribute of the component.

Declaration

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

Property Value

string

DebounceDelay

Time in ms between the 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

Decimals

Specifies the number precision applied when typing. By default the decimals count is set from the specified Culture.

Declaration

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

Property Value

int

FillMode

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

Declaration

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

Property Value

string

Format

Specifies the number format used when the component is not focused.

Declaration

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

Property Value

string

InputMode

Specifies the inputmode attribute of the NumericTextBox.

Declaration

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

Property Value

string

Max

Specifies the largest value the user can enter.

Declaration

cs-api-definition
[Parameter]
public T Max { get; set; }

Property Value

T

Min

Specifies the smallest value the user can enter.

Declaration

cs-api-definition
[Parameter]
public T Min { get; set; }

Property Value

T

NumericTextBoxPrefixTemplate

The content of the NumericTextBox prefix.

Declaration

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

Property Value

RenderFragment

NumericTextBoxSuffixTemplate

The content of the NumericTextBox suffix.

Declaration

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

Property Value

RenderFragment

Placeholder

Specifies the placeholder of the NumericTextBox.

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

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

Declaration

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

Property Value

string

SelectOnFocus

Specifies whether the NumericTextBox should select all its content when focused.

Declaration

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

Property Value

bool

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 NumericTextBox. Default value is Medium.

Declaration

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

Property Value

string

Step

Specifies the value used to increment or decrement the component value. Value will be rounded if it has a higher decimal count than the Decimals parameter.

Declaration

cs-api-definition
[Parameter]
public T Step { get; set; }

Property Value

T

Text

Gets the current version of the user input. May be different depending on whether the textbox is focused.

Declaration

cs-api-definition
public string Text { get; }

Property Value

string

Width

Specifies the width of the NumericTextBox.

Declaration

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

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

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

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

Dispose()

Declaration

cs-api-definition
public override void Dispose()

Overrides TelerikInputBase<T>.Dispose()

OnAfterRenderAsync(bool)

Declaration

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

Parameters

firstRender

bool

Returns

Task

Overrides BaseComponent.OnAfterRenderAsync(bool)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides ComponentBase.OnInitialized()

OnParametersSetAsync()

Declaration

cs-api-definition
protected override Task OnParametersSetAsync()

Returns

Task

Overrides TelerikInputBase<T>.OnParametersSetAsync()

SetParametersAsync(ParameterView)

Declaration

cs-api-definition
public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters

ParameterView

Returns

Task

Overrides TelerikInputBase<T>.SetParametersAsync(ParameterView)