1.1.3 • Published 7 years ago

mask-ioni-3 v1.1.3

Weekly downloads
16
License
MIT
Repository
github
Last release
7 years ago

mask-ioni-3

npm instal --save mask-ioni-3

Yeh! IONI not IONIC

Import

import { MaskInput } from 'mask-ioni-3/mask-input';

@NgModule({
  declarations: [
    MyApp,
    MaskInput
  ],
  })

How to use

Date
<ion-input type="text" placeholder="Date" [mask]="'00/00/0000'"></ion-input>

Vehicle - BR
<ion-input type="text" placeholder="Car Plate" [mask]="'xxx-0000'"></ion-input>
or
<ion-input type="text" placeholder="Car Plate" [mask]="'AAA-0000'"></ion-input>
or
<ion-input type="text" placeholder="Car Plate" [mask]="'aaa-0000'"></ion-input>

Any
<ion-input type="text" placeholder="Any" [mask]="'#####'"></ion-input>

Telephone - 8 or 9 digits
<ion-input type="tel" placeholder="" [mask]="'telephone'"></ion-input>

Document - CPF or CNPJ
<ion-input type="text" placeholder="" [mask]="'document'"></ion-input>
0 = numbers
A = upper case
a = lower case
x = upper or lower case
# = all characters
telephone =  8 or 9 digits
document = CPF or CNPJ

I would be happy with your contribution :)

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago