Package Exports
- vue-inputmask
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-inputmask) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-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
This library is licensed under MIT License.
Install
npm install -S vue-inputmask
Setup
With Typescript
import Vue from 'vue'
const VueInputMask = require('vue-inputmask').default
Vue.use(VueInputMask)
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>
Usage
<input type="text" v-mask="'99/99/9999'" />
<input type="text" v-mask="{mask: '99/99/9999', greedy: true}" />