Handling Validation Events
The vue-form-generator component emits a validated event, if validation is executed.
The event parameters are: isValid: boolean, errors: Array.

Example:

You can create a method to handle this event and bind it like this:
1
<vue-form-generator @validated="onValidated" />
Copied!
1
methods: {
2
onValidated(isValid, errors) {
3
console.log("Validation result: ", isValid, ", Errors:", errors);
4
}
5
}
Copied!
Last modified 3yr ago
Copy link
Contents
Example: