The class constructor function is the exported object from the file
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.
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.
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
emptyInputBehavior is set to
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
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.
Generated using TypeDoc