Class RadzenNumeric<TValue>
RadzenNumeric component.
public class RadzenNumeric<TValue> : FormComponentWithAutoComplete<TValue>, IComponent, IHandleEvent, IHandleAfterRender, IDisposable, IRadzenFormComponent
Type Parameters
TValue
The type of the t value.
- Inheritance
-
FormComponent<TValue>FormComponentWithAutoComplete<TValue>RadzenNumeric<TValue>
- Implements
- Inherited Members
Examples
<RadzenNumeric TValue="int" Min="1" Max="10" Change=@(args => Console.WriteLine($"Value: {args}")) />
Constructors
RadzenNumeric()
public RadzenNumeric()
Fields
input
Gets input reference.
protected ElementReference input
Field Value
Properties
AutoComplete
Gets or sets a value indicating whether input automatic complete is enabled.
[Parameter]
public override bool AutoComplete { get; set; }
Property Value
- bool
true
if input automatic complete is enabled; otherwise,false
.
ConvertValue
Gets or sets the function which returns TValue from string.
[Parameter]
public Func<string, TValue> ConvertValue { get; set; }
Property Value
DownAriaLabel
Gets or sets the down button aria-label attribute.
[Parameter]
public string DownAriaLabel { get; set; }
Property Value
Format
Gets or sets the format.
[Parameter]
public string Format { get; set; }
Property Value
- string
The format.
FormattedValue
Gets or sets the formatted value.
protected string FormattedValue { get; set; }
Property Value
- string
The formatted value.
HasValue
Gets a value indicating whether this instance has value.
public override bool HasValue { get; }
Property Value
- bool
true
if this instance has value; otherwise,false
.
InputAttributes
Specifies additional custom attributes that will be rendered by the input.
[Parameter]
public IReadOnlyDictionary<string, object> InputAttributes { get; set; }
Property Value
- IReadOnlyDictionary<string, object>
The attributes.
Max
Determines the maximum value.
[Parameter]
public decimal? Max { get; set; }
Property Value
- decimal?
The maximum value.
Min
Determines the minimum value.
[Parameter]
public decimal? Min { get; set; }
Property Value
- decimal?
The minimum value.
ReadOnly
Gets or sets a value indicating whether is read only.
[Parameter]
public bool ReadOnly { get; set; }
Property Value
- bool
true
if is read only; otherwise,false
.
ShowUpDown
Gets or sets a value indicating whether up down buttons are shown.
[Parameter]
public bool ShowUpDown { get; set; }
Property Value
- bool
true
if up down buttons are shown; otherwise,false
.
Step
Gets or sets the step.
[Parameter]
public string Step { get; set; }
Property Value
- string
The step.
TextAlign
Gets or sets the text align.
[Parameter]
public TextAlign TextAlign { get; set; }
Property Value
- TextAlign
The text align.
UpAriaLabel
Gets or sets the up button aria-label attribute.
[Parameter]
public string UpAriaLabel { get; set; }
Property Value
Value
Gets or sets the value.
[Parameter]
public override TValue Value { get; set; }
Property Value
- TValue
The value.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
FocusAsync()
Sets the focus on the input element.
public override ValueTask FocusAsync()
Returns
GetComponentCssClass()
protected override string GetComponentCssClass()
Returns
OnChange(ChangeEventArgs)
Handles the Change event.
protected Task OnChange(ChangeEventArgs args)
Parameters
args
ChangeEventArgsThe ChangeEventArgs instance containing the event data.
Returns
SetParametersAsync(ParameterView)
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
ParameterView