0.1.2 • Published 7 years ago

directive-inputmask v0.1.2

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

directive-inputmask

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

It's a binding for the inputmask library by Robin Herbots https://github.com/RobinHerbots/Inputmask

GitHub license Vue2 npm.io

Install

npm install -S directive-inputmask

Usage

<input type="text" v-mask="'99/99/9999'" />
<input type="text" v-mask="{mask: '99/99/9999', greedy: true}" v-on:change="maskCheck"/>
  import {DirectiveInputmask} from "directive-inputmask";

  export default {
    directives: {
      "mask": DirectiveInputmask
    }
  }