Name | Type | Default | Description |
DecimalSeparator | string | "." | Sets or gets the char to use as the decimal separator in numeric values. |
Disabled | bool | false | Enables or disables the SmartNumericTextBox. |
DropDownAppendTo | object | N/A | Sets the parent container of the radix dropdown. |
DropDownEnabled | bool | false | Determines if a dropdown will be displayed when the radix display button is clicked. The dropdown shows options for changing to the binary, octal, decimal, and hexadecimal numeral systems. |
EnableMouseWheelAction | bool | false | Enables or disables incrementing/decrementing the value using the mouse wheel in SmartNumericTextBox. |
Hint | string | "" | Sets additional helper text below the element. |
InputFormat | NumericTextBoxInputFormat | NumericTextBoxInputFormat.Integer | Sets or gets the input format of the widget. Setting this property dynamically can lead to precision loss. |
Label | string | "" | Sets a label above the element. |
LeadingZeros | bool | false | If this property is enabled, leading zeros are added (if necessary) to the binary and hexadecimal representations of a number based on wordLength. |
Locale | string | "en" | Sets or gets the language. Used in conjunction with the property messages. |
Max | object | N/A | Sets or gets the maximum value of the widget. |
Messages | object | N/A | Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale. |
Min | object | N/A | Sets or gets the minimum value of the widget. |
Name | string | "" | The name of the control. |
Nullable | bool | false | Enables or disables the setting of the value property to null or empty string. |
IsOpened | bool | false | Sets or gets whether the radix dropdown is opened. Applicable only when dropDownEnabled is true. |
OutputFormatString | string | "null" | Sets or gets the pattern which the input value is displayed in when the element is not focused. All formats available to the NumberRenderer class can be applied as outputFormatString. |
Placeholder | string | "" | Determines the widget's place holder displayed when the widget's input is empty. |
PrecisionDigits | int | N/A | Determines the number of digits after the decimal point. Applicable when inputFormat is either 'floatingPoint' or 'complex'. |
Radix | NumericTextBoxRadix | NumericTextBoxRadix.10 | Sets or gets the radix of the SmartNumericTextBox. The radix specifies the numeral system in which to display the widget's value. Applicable only when inputFormat is 'integer'. |
RadixDisplay | bool | false | Enables or disables the radix display button of the SmartNumericTextBox. Applicable only when inputFormat is 'integer'. |
RadixDisplayPosition | NumericTextBoxDisplayPosition | NumericTextBoxDisplayPosition.Left | Sets or gets the position of the radix display button of the SmartNumericTextBox. |
Readonly | bool | false | Sets or gets the readonly state of the SmartNumericTextBox. |
RightToLeft | bool | false | Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. |
ScientificNotation | bool | false | Enables or disables outputting the value in scientific notation. Applicable only when inputFormat is 'integer'. |
ShowDropDownValues | bool | false | Determines whether to show the current value represented in all four numeral systems in the drop down. |
ShowUnit | bool | false | Enables or disables the visibility of the units. |
SignificantDigits | int | 8 | Determining how many significant digits are in a number. Applicable when inputFormat is either 'floatingPoint' or 'complex'. |
SpinButtons | bool | false | Enables or disables the visibility of the spin buttons. |
SpinButtonsDelay | int | 75 | Sets the delay between repeats of spin buttons in miliseconds. |
SpinButtonsInitialDelay | int | 0 | Sets a delay before the first repeat iteration of spin buttons in miliseconds. |
SpinButtonsPosition | NumericTextBoxDisplayPosition | NumericTextBoxDisplayPosition.Right | Sets or gets the position of the spin buttons of the SmartNumericTextBox. |
SpinButtonsStep | object | 1 | Sets or gets the increase/decrease step. |
Theme | string | "" | Determines the theme. Theme defines the look of the element |
Unfocusable | bool | false | If is set to true, the element cannot be focused. |
Unit | string | "kg" | Sets or gets the name of unit used in SmartNumericTextBox widget. |
Validation | Validation | Validation.Strict | Sets the value's validation by min/max. If 'strict' is applied, the value is always validated by min and max. If 'interaction' is applied, programmatic value changes are not coerced to min/max and if min/max are changed, resulting in the current value being out of range, the value is not coerced, and no change event is fired. |
Value | object | 0 | Sets or gets the value of the SmartNumericTextBox widget. |
WordLength | WordLength | WordLength.Int32 | Sets or gets the word length. Applicable only when inputFormat is 'integer'. If min and/or max are not set by default, they will be set automatically based on the specified word length. |
Name | Type | Arguments | Description |
GetIsOpenedAsync() | Task<bool> | 'N/A' | Gets the "IsOpened" property as Task<bool>. |
GetValueAsync() | Task<object> | 'N/A' | Gets the "Value" property as Task<object>. |
Refresh | void | 'N/A' | Refreshes the Blazor Component. Performs a layout of the HTML Elements and recalculates the measurements. |
Render | void | 'N/A' | Re-renders the Blazor Component. This method will make a full re-render. |
StateHasChanged | void | 'N/A' | Refreshes the state and Re-renders the Blazor Component, if necessary. |
Val | string | object value, bool suppressValidation | Get/set the value of the NumericTextBox. Args: string value - The value to be set. If no parameter is passed, returns the displayed value of the smartNumericTextBox. ,string suppressValidation - If "true" is passed, the passed value will be set to the smartNumericTextBox without validation. |
Val | string | N/A | Get/set the value of the NumericTextBox. |
Val | string | string value, bool suppressValidation | Get/set the value of the NumericTextBox. Args: string value - The value to be set. If no parameter is passed, returns the displayed value of the smartNumericTextBox. ,string suppressValidation - If "true" is passed, the passed value will be set to the smartNumericTextBox without validation. |
Val | string | int value, bool suppressValidation | Get/set the value of the NumericTextBox. Args: int value - The value to be set. If no parameter is passed, returns the displayed value of the smartNumericTextBox. ,string suppressValidation - If "true" is passed, the passed value will be set to the smartNumericTextBox without validation. |
Name | Type | Description | Event Detail |
OnChange | EventCallback<Event> | This event is triggered when the value is changed. | N/A |
Changed | event NumericTextBoxChangedEventHandler | This event is triggered when the value is changed. | NumericTextBoxChangedEventArgs |
OnChanging | EventCallback<Event> | This event is triggered when the value in the input is being changed via keypress or paste. | N/A |
Changing | event NumericTextBoxChangingEventHandler | This event is triggered when the value in the input is being changed via keypress or paste. | NumericTextBoxChangingEventArgs |
OnClose | EventCallback<Event> | This event is triggered when the dropdown is closed. | N/A |
Closed | event NumericTextBoxClosedEventHandler | This event is triggered when the dropdown is closed. | NumericTextBoxClosedEventArgs |
OnClosing | EventCallback<Event> | This event is triggered when the dropdown is about to be closed. The closing operation can be canceled by calling event.preventDefault() in the event handler function. | N/A |
Closing | event NumericTextBoxClosingEventHandler | This event is triggered when the dropdown is about to be closed. The closing operation can be canceled by calling event.preventDefault() in the event handler function. | NumericTextBoxClosingEventArgs |
OnOpen | EventCallback<Event> | This event is triggered when the dropdown is opened. | N/A |
Opened | event NumericTextBoxOpenedEventHandler | This event is triggered when the dropdown is opened. | NumericTextBoxOpenedEventArgs |
OnOpening | EventCallback<Event> | This event is triggered when the dropdown is about to be opened. The opening operation can be canceled by calling event.preventDefault() in the event handler function. | N/A |
Opening | event NumericTextBoxOpeningEventHandler | This event is triggered when the dropdown is about to be opened. The opening operation can be canceled by calling event.preventDefault() in the event handler function. | NumericTextBoxOpeningEventArgs |
OnRadixChange | EventCallback<Event> | This event is triggered when the radix is changed. | N/A |
RadixChanged | event NumericTextBoxRadixChangedEventHandler | This event is triggered when the radix is changed. | NumericTextBoxRadixChangedEventArgs |