vue-input-restriction-directives

Set of vue directives to add text restriction to your vue input (uppercase, lowercase, numeric, alphabetic, max length)
2,163 6
Install
npm install vue-input-restriction-directives
Latest Version:1.2.2
License:ISC
Last Updated:Nov 29, 2018
Links: GitHub  ·  npm
Maintainer: josueaqp92

Vue-Input-Restriction-Directives

npm version

Set of useful vue directives to add text restriction to your input

  • No keyboard key validation, just regular expression
  • No render delay in typing

Usage

main.js:


import VueInputRestrictionDirectives from 'vue-input-restriction-directives';

Vue.use(VueInputRestrictionDirectives);

<input type="text" v-numeric-only />       // for only number input
<input type="text" v-alphabetic-only />    // for only alphabetic input
<input type="text" v-uppercase-only />     // for only uppercase input
<input type="text" v-lowercase-only />     // for only lowecase input
<input type="text" v-max-length="10" />    // for limit number of characteres input

Related Packages

vue-input-only-number

Vue 2.x input only number directive.

6,453 4
vue-contenteditable-input

Contenteditable directive with v-model, auto focus, preventing new line on enter...

6,798
@nylira/vue-form-msg

Form input error and desc component for Vue 2.

3,472 0
vue-r-mask

Masked input directive for vue.js 2

7,495
@odyzeo/form-item

Odyzeo form item component with Vue

3,288 1

Version History

Version Released License
1.2.2 ISC
1.2.1 ISC
1.2.0 ISC
1.1.0 ISC
1.0.0 ISC