vuelidate-error-extractor

Helps showing vuelidate error messages from translation files.
175,376 135
Install
npm install vuelidate-error-extractor
Latest Version:2.4.1
Vue:2
License:MIT
Last Updated:Dec 10, 2022
Links: GitHub  ·  npm
Maintainer: dobromir-hristov

Vuelidate-error-extractor makes error message display from vuelidate a breeze. Be it for a single form element or all displaying all the errors in a form.

Key features

  • :rocket: Easy to use
  • :boom: Flexible - can be tailored to fit your needs
  • :fire: Optional templates - yey mixins and slots!!!
  • :punch: No extra styling mucking your own
  • :muscle: Tested

Error messages can be styled to fit either Foundation 6, Bootstrap 3 and Bootstrap 4 styles out of the box, or can be totally customized via your own custom templates.

Vuelidate-error-extractor is also able to work with vue-i18n or any vue translation plugin as long as it exposes a $t function to the Vue prototype. We also support predefining custom validation messages for all components and overriding them per component.

Example

See the Pen Vuelidate Error extractor Usage Example

Upgrade Guide

Version 2 added some breaking changes. Instead of reaching into templates directly for the predefined templates, you need to go into either templates.singleErrorExtractor or templates.multiErrorExtractor. Everything else is backwards compatible.

import VuelidateErrorExtractor, { templates } from 'vuelidate-error-extractor'
Vue.use(VuelidateErrorExtractor, {
  template: templates.singleErrorExtractor.foundaton6
})

Documentation

Documentation and examples can be found at http://dobromir-hristov.github.io/vuelidate-error-extractor/

Changelog

Detailed changes for each release are documented in the CHANGELOG.md.

Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

Contribution

Please make sure to read the Contributing Guide before making a pull request.

License

MIT

Related Packages

bootstrap-vue-helper-json

Bootstrap-Vue/Vetur intellisense reference definitions.

31,823 2
@21cnfe/onekit-mp-cli

小程序框架开发工具

1,063
cloud-cli

快速开发基于vue和angular、jQuery为模板的cli工具

980 4
duplicate-dependencies-webpack-plugin

webpack plugin to find duplicated dependencies from your bundle

332,104 6
vue-multiselect-bootstrap-theme

Bootstrap 3/4/5 themes for vue-multiselect

8,906 6

Version History

Version Released License
2.4.1 MIT
2.4.0 MIT
2.3.1 MIT
2.3.0 MIT
2.2.3 MIT
Pre-releases (2)
Version Released License
2.0.0-beta.0 MIT
0.0.1-alpha.0 MIT