Input Masked

Input component for fields with mask.

Props

mask String

Important
Need to check the definition and use.

maskType String

Default mask type. See Masks.

default: null

removeMaskOnChange Boolean

If true, removes mask after onKeyUp is throwed.

default: false

type String

input type.

default: 'text'

regex String

Custom mask type Regex.

default: "input.text"
// Mask example
regex: '\d{3}.\d{3}.\d{3}-\d{2}'

onComplete Function

Function callback run the complete mask.

default: function () {}

onIncomplete Function

Function callback run to blur input with incomplete mask.

default: function () {}

onCleared Function

Function callback executed when cleaning mask.

default: function () {}