@microsoft/fast-foundation > Switch
Switch class
A Switch Custom HTML Element. Implements the ARIA switch.
- The deafult slot for the label
checked-message - The message when in a checked state
unchecked-message - The message when in an unchecked state
label - The label
switch - The element representing the switch, which wraps the indicator
status-message - The wrapper for the status messages
checked-message - The checked message
unchecked-message - The unchecked message
change - Emits a custom change event when the checked state changes
Signature:export declare class Switch extends FormAssociatedSwitch
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)() | Constructs a new instance of the Switch class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
readOnly | boolean | When true, the control will be immutable by user interaction. See readonly HTML attribute for more information. |