Class RadzenNumeric<TValue>
RadzenNumeric component.
Inheritance
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenNumeric<TValue> : FormComponentWithAutoComplete<TValue>, IDisposable, IRadzenFormComponent
Type Parameters
Name | Description |
---|---|
TValue | The type of the t value. |
Examples
<RadzenNumeric TValue="int" Min="1" Max="10" Change=@(args => Console.WriteLine($"Value: {args}")) />
Fields
input
Gets input reference.
Declaration
protected ElementReference input
Field Value
Type | Description |
---|---|
ElementReference |
Properties
ConvertValue
Gets or sets the function which returns TValue from string.
Declaration
public Func<string, TValue> ConvertValue { get; set; }
Property Value
Type | Description |
---|---|
Func<System.String, TValue> |
DownAriaLabel
Gets or sets the down button aria-label attribute.
Declaration
public string DownAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Format
Gets or sets the format.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String | The format. |
FormattedValue
Gets or sets the formatted value.
Declaration
protected string FormattedValue { get; set; }
Property Value
Type | Description |
---|---|
System.String | The formatted value. |
HasValue
Gets a value indicating whether this instance has value.
Declaration
public override bool HasValue { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Overrides
InputAttributes
Specifies additional custom attributes that will be rendered by the input.
Declaration
public IReadOnlyDictionary<string, object> InputAttributes { get; set; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<System.String, System.Object> | The attributes. |
Max
Determines the maximum value.
Declaration
public decimal? Max { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> | The maximum value. |
Min
Determines the minimum value.
Declaration
public decimal? Min { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Decimal> | The minimum value. |
ReadOnly
Gets or sets a value indicating whether is read only.
Declaration
public bool ReadOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ShowUpDown
Gets or sets a value indicating whether up down buttons are shown.
Declaration
public bool ShowUpDown { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Step
Gets or sets the step.
Declaration
public string Step { get; set; }
Property Value
Type | Description |
---|---|
System.String | The step. |
TextAlign
Gets or sets the text align.
Declaration
public TextAlign TextAlign { get; set; }
Property Value
Type | Description |
---|---|
TextAlign | The text align. |
UpAriaLabel
Gets or sets the up button aria-label attribute.
Declaration
public string UpAriaLabel { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Value
Gets or sets the value.
Declaration
public override TValue Value { get; set; }
Property Value
Type | Description |
---|---|
TValue | The value. |
Overrides
Methods
FocusAsync()
Sets the focus on the input element.
Declaration
public override async ValueTask FocusAsync()
Returns
Type | Description |
---|---|
ValueTask |
Overrides
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
OnChange(ChangeEventArgs)
Handles the Change event.
Declaration
protected async System.Threading.Tasks.Task OnChange(ChangeEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ChangeEventArgs | args | The |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
SetParametersAsync(ParameterView)
Sets the parameters asynchronous.
Declaration
public override async Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task | Task. |