ionic-input-mask
Input mask for Ionic2 and upper versions.
Getting Started
Installing
``
bash
npm install ionic-input-mask --save
`
Using
`
typescript
app.module.ts
import { InputMaskModule } from 'ionic-input-mask';
imports: [
InputMaskModule,
]
`
`
html
*.html
``
$3
Mandatory
Definition of the mask. maskCharacter
(default = '_') will define the maximum length of the field and which characters will be replaced in the mask. Mask is not included in the return value, only input typed by the user.
$3
Optional
Define which character in the mask should be replaced.
Default value is '_'.
$3
Optional
Define which characters are allowed in the field. Must be character range like in regular expression.
Ex:
- 0-9 -> Numbers only
- A-Z -> Letters only, in uppercase
If not defined, all characters are allowed.
$3
Optional
Directly linked to ion-input field tabindex.
$3
Optional
Directly linked to ion-input field type.