Skip to content

Input mask directive for Vue 2.* based on jquery.inputmask

Notifications You must be signed in to change notification settings

krustnic/v-inputmask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vue 2.* Input mask directive

It's wrapper for jquery.inputmask library. Allow to use directive on components (not only on INPUT tag elements)

Example

Install:

npm install v-inputmask --save

Exmaple for Elements UI:

import VInputmask from 'v-inputmask';

Vue.use(VInputmask);
<el-form-item label="Date">
    <el-input v-inputmask="'99.99.9999'"></el-input>
</el-form-item>

For components by default it search for first input element. If there are multiple elements it is possible to specify it by css selector:

<my-component v-inputmask="'999-999'" data-inputmask-target="#code"></my-component>

About

Input mask directive for Vue 2.* based on jquery.inputmask

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published