MdSwitch
Switches toggle the state of an item on or off.
See https://material-web.dev/components/switch/
Author
Maanrifa Bacar Ali
Properties
The associated form element with which this element's value will submit.
Shows only the selected icon, and not the deselected icon. If true, overrides the behavior of the icons property.
Message to display when the component value is not valid.
Gets the element's current validity state.
Indicates that the element is a candidate for constraint validation.
Functions
Indicates the validity of the value of the element. If the value is invalid, this method also fires the invalid event on the element.
Performs the same validity checking steps as the checkValidity method. If the value is invalid, this method also fires the invalid event on the element, and (if the event isn't canceled) reports the problem to the user.
Sets a custom validity message for the underlying element.