Vue.js directive to add inputmask library to your inputs (vanilla javascript).
Switch branches/tags
Nothing to show
Clone or download
scleriot Merge pull request #8 from moshenskyDV/patch-1
Update README with documentation of the change event
Latest commit 4cca4b4 Jun 29, 2018


Vue.js directive to add a mask to your inputs (vanilla javascript).

It's a binding for the inputmask library by Robin Herbots

Vue-inputmask demo

This library is licensed under MIT License.


npm install -S vue-inputmask


With Typescript

import Vue from 'vue'
const VueInputMask = require('vue-inputmask').default


With a script tag

<script src="./node_modules/inputmask/dist/inputmask/dependencyLibs/inputmask.dependencyLib.js"></script>
<script src="./node_modules/inputmask/dist/inputmask/inputmask.js"></script>
<script src="./dist/vue-inputmask-browser.js"></script>


<input type="text" v-mask="'99/99/9999'" />
<input type="text" v-mask="{mask: '99/99/9999', greedy: true}" v-on:change="maskCheck"/>
new Vue({
  methods: {
    maskCheck: function (field){
      if ( {
        console.log('is Complete');
      } else {
        console.log('is Incomplete');