Vue Input validator is a lightweight, customizable, scalable, mobile-friendly form checker that supports real-time, asynchronous, and ajax validation.
With this package, you can create input validators only with the help of a single directive without the need for additional settings; You can create a custom validator with the help of regex or functions, and it will be automatically appended to your textbox!
How to make use of it:
Install and download:
# Yarn $ yarn add @mediv0/validator # NPM $ npm i @mediv0/validator
1. Import and register the component.
import Vue from "vue; import validator from @mediv0/validator;
Vue.use(validator, options);
2. Attach the form validator to the input fields using the v-validator directive.
<input v-validator="validatorOptions" />
export default { data(){ return { validatorOptions: { ... } } } }
3. Possible checker options.
key?: string; hideLines?: boolean; hideLabels?: boolean; circleSize?: number; disable?: boolean; debounce?: number; items: checkPropertyItemsType; onError?: IonError; onSuccess?: Function;
4. Possible plugin options.
Vue.use(validator, { name: "validator", success: "#2DE68F", failed: "#979797", unchecked: "#FF4343" });
Tiny Async & AJAX Form Validation Library, Vue input validator Plugin/Github
See Demo And Download
Official Website(mediv0): Click Here
This superior jQuery/javascript plugin is developed by mediv0. For extra Advanced usage, please go to the official website.