The validator component is an interface that informs to the Form when to enable the
FormSubmit button. It is based on the
observability concept, which FormInput will validate the submitted information and then send them to the Validator.
There are two ways to use Form Validator:
notifyObserversmethod inside the
Atenção: Validator ≠FormValidation
Despite the similar names, it’s important to mention that Validator is different of the FormValidation. The first one authenticates the filled form and the second returns error messages in case of failed information in the form.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.