directive-inputmask
v0.1.2
Published
InputMask for Vue.js
Downloads
3
Readme
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
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
}
}