Skip to content

Accessing the methods ​

AutoNumeric provides numerous methods to access and modify the element value, formatted or unformatted, at any point in time.
It does so by providing access to those methods via the AutoNumeric object class, which is declared as an ES6 Module.

First, you need to get a reference to the AutoNumeric module that you need to import:

js
import AutoNumeric from 'autonumeric';

Then you'll be able to access either the methods on the instantiated AutoNumeric object, or the static functions directly by using the AutoNumeric class.