https://github.com/krustnic/v-inputmask
Input mask directive for Vue 2.* based on jquery.inputmask
https://github.com/krustnic/v-inputmask
inputmask maskedinput vue vue-directive
Last synced: 4 months ago
JSON representation
Input mask directive for Vue 2.* based on jquery.inputmask
- Host: GitHub
- URL: https://github.com/krustnic/v-inputmask
- Owner: krustnic
- Created: 2017-08-05T08:22:08.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-15T13:03:38.000Z (over 8 years ago)
- Last Synced: 2025-08-13T06:11:50.889Z (10 months ago)
- Topics: inputmask, maskedinput, vue, vue-directive
- Language: JavaScript
- Size: 1.95 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vue 2.* Input mask directive
It's wrapper for [jquery.inputmask](https://github.com/RobinHerbots/Inputmask) library. Allow to use directive on components (not only on INPUT tag elements)
## Example
Install:
```sh
npm install v-inputmask --save
```
Exmaple for [Elements UI](http://element.eleme.io/#/en-US):
```javascript
import VInputmask from 'v-inputmask';
Vue.use(VInputmask);
```
```html
```
For components by default it search for first `input` element. If there are multiple
elements it is possible to specify it by css selector:
```html
```