Creates a new NumberInputHandler instance.
The number format that handler uses to format input values.
Handler options.
Protected
_Resolved options of the number format.
Protected
_Handler options.
Readonly
formatThe number format that handler uses to format input values.
Readonly
istrue
if number input supports decimal separator.
Returns an initial mutable state of a formatted input that corresponds to a value
.
A value provided to a useFormattedInput.
Returns the selected text. Called when text is copied or cut from a formatted input.
By default, a substring of formatted value is used.
The current state of an input.
A selected text.
Updates the state when input is blurred. No-op by default.
The current state of an input.
Updates the state after a user has changed a formatted value.
The state of an input before the formatted value change.
The new formatted value.
The new start of the text selection.
The new end of the text selection.
A new mutable state of a formatted input.
A handler of numeric formatted input.
Example