Returns the unformatted value, but following the outputFormat
setting, which means the output can either be:
By default the returned values are an ISO numeric string "1234.56" or "-1234.56" where the decimal character is a period.
Check the outputFormat
option definition for more details.
Return the DOM element reference of the autoNumeric-managed element
Remove the autoNumeric data and event listeners from the element, and delete the DOM element altogether
Remove the autoNumeric data and event listeners from the element, but keep the element content intact. This also clears the value from sessionStorage (or cookie, depending on browser supports). Note: this does not remove the formatting.
Set the given element value, and format it immediately.
Additionally, this set()
method can accept options that will be merged into the current AutoNumeric element, taking precedence over any previous settings.
The value must be a Number, a numeric string or null
(if emptyInputBehavior
is set to 'null'
)
A settings object that will override the current settings. Note: the update is done only if the newValue
is defined.
If set to true
, then the change is recorded in the history table
Set the given value directly as the DOM element value, without formatting it beforehand. You can also set the value and update the setting in one go (the value will again not be formatted immediately).
Remove the autoNumeric data and event listeners from the element, and reset its value to the empty string ''. This also clears the value from sessionStorage (or cookie, depending on browser supports).
Return true in the settings are valid
Format the given number with the given options. This returns the formatted value as a string.
Format the domElement value with the given options and returns the formatted value as a string.
Return the AutoNumeric object that manages the given DOM element
Return the default autoNumeric settings
Return all the predefined options in one object
Return true if the given DOM element has an AutoNumeric object that manages it.
Unformat and localize the given formatted string with the given options.
Generated using TypeDoc
The class constructor function is the exported object from the file