Groups a series of toggle buttons together, exposing features such as layout and selection.
- Element
-
igc-button-group
- Slots
-
default— Renders the toggle buttons of the group.
- CSS Parts
-
group— The button group container.
Properties
Section titled "Properties"alignment
Section titled "alignment"The orientation of the buttons in the group.
alignment: ContentOrientation = 'horizontal' disabled
Section titled "disabled"Whether all buttons in the group are disabled.
disabled: boolean = false selection
Section titled "selection"The selection mode of the group. A change of the mode clears the selection.
selection: ButtonGroupSelection = 'single' tagName
Section titled "tagName"The tagName read-only property of the Element interface returns the tag name of the element on which it's called.
tagName: "igc-button-group" = 'igc-button-group' Accessors
Section titled "Accessors"selectedItems
Section titled "selectedItems"The values of the selected buttons. A button without a value is not in the list.
When set, selects the buttons with these values. A single selection mode selects only the first matching button.
get selectedItems(): string[] Defined in src/components/button-group/button-group.ts:144
Returns string[]