ValidatableMixin
Provides functionality for elements that can be validated. Learn more.
Guides
Additional information about this section
Properties
Store values associated with an object
- valid
Indicates if an input element's value is valid.
- validationMessage
Gets a message indicating why the element is invalid, or an empty string if the message is valid.
- validity
Gets a ValidityState object that contains detailed information about the validity states of the element.
Endpoints
The endpoints exposed by this API
Adds an event handler that runs when the element's validation is checked.
Resets the element's visual validity indication.
Updates the element's visual validity indication based on its current validity state.