0.0.20 • Published 5 years ago

vue-inputmask-ng v0.0.20

Weekly downloads
92
License
-
Repository
github
Last release
5 years ago

vue-inputmask-ng

Vue.js plugin which is based on the InputMask

Include vue-inputmask-ng after Vue and it will install itself automatically:
<script src="/path/to/vue.js"></script>
<script src="/path/to/vue-inputmask-ng.umd.js"></script>
When used with a module system, you must install it via Vue.use():
npm install vue-inputmask-ng
import VueInputMask from 'vue-inputmask-ng'
Vue.use(VueInputMask)
Usage as directive
<input type="tel" v-mask="'[+9] (999) 999 99 99'"/>
<input type="tel" v-mask="{ mask: '99/99/9999', greedy: true }"/>
<input type="tel" v-mask="{ mask: () => ['999', '(9{4,})'] }">
Usage as component
<input-mask type="tel" mask="[+9] (999) 999 99 99" @complete="..." @incomplete="..." @cleared="..." />
<element-mask tag="h1" contenteditable="true" mask="[+9] (999) 999 99 99"/>
Vue instance methods
this.$inputMaskFormat('2331973', { alias: 'datetime', inputFormat: 'dd/mm/yyyy' })
this.$inputMaskIsValid('23/03/1973', { alias: 'datetime', inputFormat: 'dd/mm/yyyy' })
Development
npm install
npm run build
0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago