The igc-toggle-button wraps a native button element and exposes additional value and selected properties.
It is used in the context of an igc-button-group to facilitate the creation of group/toolbar like UX behaviors.
- Slots
-
Renders— the label/content of the button.
- CSS Parts
toggle— The native button element.
Properties
Section titled "Properties"disabled
Section titled "disabled"Determines whether the button is disabled.
disabled: boolean selected
Section titled "selected"Determines whether the button is selected.
selected: boolean value
Section titled "value"The value attribute of the control.
value: string Methods
Section titled "Methods"Removes focus from the button.
blur(): void Returns void
click
Section titled "click"Simulates a mouse click on the element.
click(): void Returns void
focus
Section titled "focus"Sets focus on the button.
focus(options: FocusOptions): void Parameters
- options:
FocusOptions