The disabled state of the component.
Sets the control into invalid state (visual state only).
The label position of the control.
The name attribute of the control.
The initial checked state of the component.
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.
Similar to a checkbox, a switch controls the state of a single setting on or off.
Element
igc-switch
Slot
Fires
igcChange - Emitted when the control's checked state changes.
Csspart
base - The base wrapper of the switch.
Csspart
control - The switch input element.
Csspart
thumb - The position indicator of the switch.
Csspart
label - The switch label.