Skip to content

Events

PropertyTypeDescription
on_changefunction(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 }.
InputVarious(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

PropertyTypeDescription
onChangefunction(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}.
onFocusfunction(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}.
onBlurfunction(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}.