ionic2-pincode-input
A pin-code input for ionic2
Installation
$ npm install ionic2-pincode-input --save$ npm install @angular/animations --save
Usage
app.module.ts
;;;; ... ;
your-page.ts
; ;
pinHandler
example
; ;
create(PincodeOpt)
PincodeOpt
Name | Type | Default | Description |
---|---|---|---|
cssClass | string | '' |
separated by spaces |
passSize | number | 6 |
your password size |
title | String | 'password' |
title |
cancelButtonText | String | 'cancel' |
cancel button text |
encoded | Function | (c) => {return c} |
your encoded pin code function |
forgotPasswordText | String | 'forgot password' |
forgot password text |
hideToolbar | Boolean | false |
is hide toolbar |
hideForgotPassword | Boolean | false |
is hide forgot password button |
hideCancelButton | Boolean | false |
is hide cancel button |
enableBackdropDismiss | Boolean | true |
Whether the alert should be dismissed by tapping the backdrop. |
pinHandler | PincodePinHandler (pin: string): Promise<any> |
null |
Callback called when the PIN is complete. Returns a Promise which resolves if the PIN is valid. |
visibility | Boolean | false |
is show pin-code |