Similar to a checkbox, a switch controls the state of a single setting on or off.
igcChange - Emitted when the control's checked state changes.
igcFocus - Emitted when the control gains focus.
igcBlur - Emitted when the control loses focus.
base - The base wrapper of the switch.
control - The switch control.
thumb - The position indicator of the switch.
label - The switch label.
The checked state of the control.
The disabled state of the component
Control the validity of the control.
The label position of the control.
The name attribute of the control.
Makes the control a required field in a form context.
The value attribute of the control.
Returns the HTMLFormElement associated with this element.
A string containing the validation message of this element.
Returns a ValidityState object which represents the different validity states the element can be in, with respect to constraint validation.
A boolean value which returns true if the element is a submittable element that is a candidate for constraint validation.
Removes focus from the control.
Checks for validity of the control and emits the invalid event if it invalid.
Simulates a click on the control.
Sets focus on the control.
Checks for validity of the control and shows the browser message if it invalid.
Sets a custom validation message for the control.
As long as
message is not empty, the control is considered invalid.