Name |
Type |
Default value |
Description |
---|
AriaDescription |
string? |
null |
Detailed description of the input for the benefit of screen readers. |
AriaPositionInSet |
int? |
null |
The position in the parent set (if in a set). |
AriaSetSize |
int? |
null |
The total size of the parent set (if in a set). |
AriaValueNow |
TValue? |
null |
Sets the control's aria-valuenow. Providing this only makes sense when using as a controlled component. |
AriaValueText |
string? |
null |
Sets the control's aria-valuetext. |
ChangeHandler |
EventCallback<BitNumericTextFieldAction> |
|
|
Classes |
BitNumericTextFieldClassStyles? |
null |
Custom CSS classes for different parts of the BitNumericTextField. |
DefaultValue |
TValue? |
null |
Initial value of the numeric text field. |
DecrementAriaLabel |
string? |
null |
Accessible label text for the decrement button (for screen reader users). |
DecrementIconName |
string |
ChevronDownSmall |
Custom icon name for the decrement button. |
IconName |
string? |
null |
Icon name for an icon to display alongside the numeric text field's label. |
IconAriaLabel |
string |
string.Empty |
The aria label of the icon for the benefit of screen readers. |
IncrementAriaLabel |
string? |
null |
Accessible label text for the increment button (for screen reader users). |
IncrementIconName |
string |
ChevronUpSmall |
Custom icon name for the increment button. |
Label |
string |
string.Empty |
Descriptive label for the numeric text field, Label displayed above the numeric text field and read by screen readers. |
LabelTemplate |
RenderFragment? |
null |
Shows the custom Label for numeric text field. If you don't call default label, ensure that you give your custom label an id and that you set the input's aria-labelledby prop to that id. |
LabelPosition |
BitNumericTextFieldLabelPosition |
BitNumericTextFieldLabelPosition.Top |
The position of the label in regards to the numeric textfield. |
Min |
TValue? |
null |
Min value of the numeric text field. If not provided, the numeric text field has minimum value. |
Max |
TValue? |
null |
Max value of the numeric text field. If not provided, the numeric text field has max value. |
OnChange |
EventCallback<TValue> |
|
Callback for when the numeric text field value change. |
OnFocus |
EventCallback<FocusEventArgs> |
|
Callback for when focus moves into the input. |
OnFocusIn |
EventCallback<FocusEventArgs> |
|
Callback for when focus moves into the input. |
OnFocusOut |
EventCallback<FocusEventArgs> |
|
Callback for when focus moves out of the input. |
OnBlur |
EventCallback<FocusEventArgs> |
|
Callback for when the control loses focus. |
OnDecrement |
EventCallback<BitNumericTextFieldChangeValue<TValue>> |
|
Callback for when the decrement button or down arrow key is pressed. |
OnIncrement |
EventCallback<BitNumericTextFieldChangeValue<TValue>> |
|
Callback for when the increment button or up arrow key is pressed. |
Precision |
int? |
null |
How many decimal places the value should be rounded to. |
Placeholder |
string? |
null |
Input placeholder text. |
Step |
TValue? |
null |
Difference between two adjacent values of the numeric text field. |
Styles |
BitNumericTextFieldClassStyles? |
null |
Custom CSS styles for different parts of the BitNumericTextField. |
Suffix |
string |
string.Empty |
A text is shown after the numeric text field value. |
ShowArrows |
bool |
false |
Whether to show the up/down spinner arrows (buttons). |
Title |
string? |
null |
A more descriptive title for the control, visible on its tooltip. |
ValidationMessage |
string |
The {0} field is not valid. |
The message format used for invalid values entered in the input. |
Name |
Type |
Default value |
Description |
---|
AriaLabel |
string? |
null |
The aria-label of the control for the benefit of screen readers. |
Class |
string? |
null |
Custom CSS class for the root element of the component. |
HtmlAttributes |
Dictionary<string, object> |
new Dictionary<string, object>() |
Capture and render additional attributes in addition to the component's parameters. |
Id |
string? |
null |
Custom id attribute for the root element. if null the UniqueId will be used instead. |
IsEnabled |
bool |
true |
Whether or not the component is enabled. |
Style |
string? |
null |
Custom CSS style for the root element of the component. |
Visibility |
BitVisibility |
BitVisibility.Visible |
Whether the component is visible, hidden or collapsed. |