Group
Examples
Basic
Suppress header selection
Custom group entry
Group with context menu
note
Please note that there is an issue with the slot rendering that can only be fixed with the next major version of Siemens iX. Luckily there exists a workaround for rendering context menus inside the group component.
To show a context menu place an ix-dropdown with slot="dropdown" combined with ix-dropdown-item's inside the ix-group-tag tag.
API (ix-group)
Properties
Name
Description and specifications
collapsed
Whether the group is collapsed or expanded. Defaults to true.
Attribute:
collapsedType:
booleanDefault:
trueexpandOnHeaderClick
Expand the group if the header is clicked
Attribute:
expand-on-header-clickType:
booleanDefault:
falseheader
Group header
Attribute:
headerType:
string | undefinedindex
The index of the selected group entry.
If undefined no group item is selected.
Attribute:
indexType:
number | undefinedselected
Whether the group is selected.
Attribute:
selectedType:
booleanDefault:
falsesubHeader
Group header subtitle
Attribute:
sub-headerType:
string | undefinedsuppressHeaderSelection
Prevent header from being selectable
Attribute:
suppress-header-selectionType:
booleanDefault:
falseEvents
Name
Description and specifications
collapsedChanged
Group collapsed
Detail:
booleanselectGroup
Emits when whole group gets selected.
Detail:
booleanselectItem
Emits when group item gets selected.
Detail:
numberAPI (ix-group-item)
Properties
Name
Description and specifications
focusable
The elements tabindex attribute will get set accordingly.
If true tabindex will be 0, -1 otherwise.
Attribute:
focusableType:
booleanDefault:
trueicon
Group item icon
Attribute:
iconType:
string | undefinedindex
Index
Attribute:
indexType:
number | undefinedsecondaryText
Group item secondary text
Attribute:
secondary-textType:
string | undefinedselected
Show selected state
Attribute:
selectedType:
booleanDefault:
falsesuppressSelection
Supress the selection of the group
Attribute:
suppress-selectionType:
booleanDefault:
falsetext
Group item text
Attribute:
textType:
string | undefinedEvents
Name
Description and specifications
selectedChanged
Selection changed
Detail:
HTMLIxGroupItemElement