ClassTelerikNumericTextBox<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:
public class TelerikNumericTextBox<T> : TelerikInputBase<T>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikInputBase<T>TelerikNumericTextBox<T>
Implements:
Inherited Members
Constructors
TelerikNumericTextBox()
Declaration
public TelerikNumericTextBox()
Properties
Arrows
Specifies whether the increment and decrement arrows will be displayed.
AutoComplete
Specifies the autocomplete attribute of the component.
Declaration
[Parameter]
public string AutoComplete { get; set; }
Property Value
DebounceDelay
Time in ms between the last typed symbol and the updating of the value. Default is 150ms.
Decimals
Specifies the number precision applied when typing. By default the decimals count is set from the specified Culture.
FillMode
Specifies the fill mode of the NumericTextBox. Default value is Solid.
Declaration
[Parameter]
public string FillMode { get; set; }
Property Value
Format
Specifies the number format used when the component is not focused.
InputMode
Specifies the inputmode attribute of the NumericTextBox.
Declaration
[Parameter]
public string InputMode { get; set; }
Property Value
Max
Specifies the largest value the user can enter.
Declaration
[Parameter]
public T Max { get; set; }
Property Value
T
Min
Specifies the smallest value the user can enter.
Declaration
[Parameter]
public T Min { get; set; }
Property Value
T
NumericTextBoxPrefixTemplate
The content of the NumericTextBox prefix.
Declaration
[Parameter]
public RenderFragment NumericTextBoxPrefixTemplate { get; set; }
Property Value
NumericTextBoxSuffixTemplate
The content of the NumericTextBox suffix.
Declaration
[Parameter]
public RenderFragment NumericTextBoxSuffixTemplate { get; set; }
Property Value
Placeholder
Specifies the placeholder of the NumericTextBox.
Declaration
[Parameter]
public string Placeholder { get; set; }
Property Value
ReadOnly
The parameter is used to specify if the input field should be read-only.
When set to true
, the input becomes non-editable.
SelectOnFocus
Specifies whether the NumericTextBox should select all its content when focused.
Declaration
[Parameter]
public bool SelectOnFocus { get; set; }
Property Value
ShowClearButton
Specifies whether the clear button should be displayed.
Declaration
[Parameter]
public bool ShowClearButton { get; set; }
Property Value
ShowPrefixSeparator
Defines whether the prefix separator should be shown. The default value is true.
Declaration
[Parameter]
public bool ShowPrefixSeparator { get; set; }
Property Value
ShowSuffixSeparator
Defines whether the suffix separator should be shown. The default value is true.
Declaration
[Parameter]
public bool ShowSuffixSeparator { get; set; }
Property Value
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
[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.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides