@mtntop/validated-input
v0.1.80
Published
```javascript import ValidatedInput from '@mtntop/validated-input'; Vue.use(ValidatedInput); ```
Downloads
828
Keywords
Readme
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 :
validated-input
- validated input, select, text-areaautocomplete-input
- input with list of options loaded with pagination(on scroll or search)- multiselect
Push Development Changes:
- Run
npm version patch
- this will change version, create git tags, push git tags - Run
npm run build
- build the app - Run
npm publish --access public
- publish last build to remote repo, before publish make sure you have dupgrade version and build
Development :
npm run watch:server
- start front end dev