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:

<vue-form-generator @validated="onValidated" />
methods: {
  onValidated(isValid, errors) {
   console.log("Validation result: ", isValid, ", Errors:", errors);
  }
}

results matching ""

    No results matching ""