Skip to content

Events

EventsDescription
on_change(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(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

EventsDescription
onChange(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(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(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}.