@mtntop/validated-input

0.1.67 • Public • Published

Validated Input

import ValidatedInput from '@mtntop/validated-input';
Vue.use(ValidatedInput);

Validation Rules

https://vee-validate.logaretm.com/v2/guide/rules.html#integer

Usage example:

<validated-input label="Zip" :validate="{ required: true, regex: /\d+/ }" v-model="value.zip" />

Validation modes:

  • instant - whenever field appears on the page
  • onfocus (default) - whenever field is clicked
  • wait - wait for explicit calling of $validator.validateAll()

components exported :

  1. validated-input - validated input, select, text-area
  2. autocomplete-input - input with list of options loaded with pagination(on scroll or search)
  3. multiselect

Push Development Changes:

  1. Run npm version patch - this will change version, create git tags, push git tags
  2. Run npm run build - build the app
  3. Run npm publish --access public - publish last build to remote repo, before publish make sure you have dupgrade version and build

Development :

  1. npm run watch:server - start front end dev

Readme

Keywords

none

Package Sidebar

Install

npm i @mtntop/validated-input

Weekly Downloads

151

Version

0.1.67

License

none

Unpacked Size

255 kB

Total Files

3

Last publish

Collaborators

  • dannydev123
  • jmille007
  • siomask2
  • evgeniy.tokovenko