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.
Functions
Perform actions on an object
- onCustomValidation( )
Adds an event handler that runs when the element's validation is checked.
- resetValidityIndication( )
Resets the element's visual validity indication.
- updateValidityIndication( )
Updates the element's visual validity indication based on its current validity state.