Events
| Property | Type | Description |
|---|---|---|
on_change | function | (optional) will be called on value changes made by the user. Returns an object with the value as a string and the native event: { value, numberValue, cleanedValue, event }. |
Input | Various | (optional) All Input events are supported. |
NB: numberValue is returned as a float value and is only returned if the createNumberMask is used by either using number_mask, currency_mask, as_number or as_currency.
MultiInputMask
| Property | Type | Description |
|---|---|---|
onChange | function | (optional) runs when an input value changes. Has an object parameter with keys matching the id's defined in inputs, and values of string. E.g: {month: string, year: string}. |
onFocus | function | (optional) runs when an input gains focus. Has an object parameter with keys matching the id's defined in inputs, and values of string. E.g: {month: string, year: string}. |
onBlur | function | (optional) runs when an input lose focus. Has an object parameter with keys matching the id's defined in inputs, and values of string. E.g: {month: string, year: string}. |