NumericTextBoxModel

Interface representing the NumericTextBox class.

Properties

cssClass String

Specifies CSS classes to customize the appearance of the control.

Default: ""

currency String

Specifies the ISO 4217 currency codes, for example 'USD', when formatting currency.

Default: null

decimals Number

Specifies the precision, decimal placements, to apply to the textbox value.

Default: null

enabled Boolean

Specifies whether the textbox is enabled or not.

Default: true

enableRtl Boolean

Specifies whether to render the control in right to left direction.

Default: false

enableState Boolean

Specifies whether to persist the state of the control between page loads.

The following properties will be saved to state.
  • value

Default: false

format String

Specifies the number format used when displaying the value.

Default: n2

htmlAttributes {:}

Specifies additional HTML attributes, such as title, styles, class, id, and name, in a key-value pair format that will be appended to the HTML element. If both the property and equivalent HTML attributes are configured, then the control overrides the property value with the HTML attributes.

Default: {}

labelType FloatingLabelType

Specifies the condition on when to show the floating label, for example: never, always.

Default: Never

locale String

Specifies the culture and localization value for this control, overriding the globally defined value.

Default: en-US

max Number

Specifies the mask of the textbox.

Default: Number.MAX_VALUE

min Number

Specifies the minimum value allowed to be entered in the textbox.

Default: -Number.MAX_VALUE

placeholder String

Specifies a short description of what is expected to be entered into the control.

Default: null

readonly Boolean

Specifies whether the control is readonly disabling all user interaction with the control.

Default: false

showClearButton Boolean

Specifies whether to show the clear button or not, allowing the user to clear the current value.

Default: false

showSpinButton Boolean

Specifies whether to show the up/down button to click through value.

Default: true

step Number

Specifies the incremental and decremental step size.

Default: 1

strictMode Boolean

Specifies whether to require that the entered number is valid and within the min/max range. If the number is not valid, the previous number will be restored.

Default: true

validateDecimalOnType Boolean

Specifies whether the decimals entered should be restricted while typing.

Default: false

value String

Specifies the current cron value select in the cron builder.

Default: * * * * *

width String Number

Defines the width of the control in either pixels, number, or percentage.

Default: null

Events

blur EmitType<NumericTextBoxBlurEventArgs>

Event callback that is raised when focus leaves the control.

change EmitType<NumericTextBoxChangeEventArgs>

Event callback that is raised when the control value is changed.

created EmitType<CreatedEventArgs>

Event callback that is raised when the control has been created.

destroyed EmitType<Object>

Event callback that is raised when the control has been destroyed.

focus EmitType<NumericTextBoxFocusEventArgs>

Event callback that is raised when the control is focused.