Skip to main content

TableGroupRow

<ui5-table-group-row> | Since 2.23.0

The ui5-table-group-row component represents a group header row in the ui5-table. It is used to visually group rows and spans across all visible table columns.

Usage​

The ui5-table-group-row is placed as a direct child of ui5-table, alongside ui5-table-row elements. Rows following a group row are considered part of that group until the next group row. With ui5-table-virtualizer, each group header must have its own position and be included in rowCount.

<ui5-table>
<ui5-table-header-row>...</ui5-table-header-row>
<ui5-table-group-row>Country: Germany</ui5-table-group-row>
<ui5-table-row>...</ui5-table-row>
<ui5-table-row>...</ui5-table-row>
<ui5-table-group-row>Country: France</ui5-table-group-row>
<ui5-table-row>...</ui5-table-row>
</ui5-table>

Unsupported Features​

The following features of ui5-table-row are currently not supported by ui5-table-group-row and have no effect:

  • Cells (cells slot): Group rows render a single spanning cell with a text. Any slotted ui5-table-cell elements are ignored.
  • Actions (actions slot): Row actions such as ui5-table-row-action or ui5-table-row-action-navigation are not rendered.
  • Navigation (navigated property): The navigated indicator is not rendered on group rows.
  • Interactive (interactive property): Group rows do not support click/activation behavior.
  • Selection (rowKey property`): Group rows cannot be selected. They are excluded from select all and range selection operations.

ES6 Module Import​

import "@ui5/webcomponents/dist/TableGroupRow.js";

Basic Sample​

Properties​

interactive​

DescriptionDefines the interactive state of the row.
Typeboolean
Defaultfalse

loading​

DescriptionDefines whether the row is a placeholder for data that is not available yet.
The cell content is hidden and row activation is disabled while loading. Keep the cells of the row while it is loading, their content can be empty. Once the data is available, remove the property.
Note: When used with the ui5-table-virtualizer, the height of loading rows matches the estimated row height, and their height is not taken into account for the row height estimation.
Note: The loading property is in an experimental state and is a subject to change.
Typeboolean
Defaultfalse
Since2.30.0

movable​

DescriptionDefines whether the row is movable.
Typeboolean
Defaultfalse
Since2.6.0
DescriptionDefines the navigated state of the row.
Typeboolean
Defaultfalse

position​

DescriptionDefines the 0-based position of the row related to the total number of rows within the table when the ui5-table-virtualizer feature is used.
Typenumber | undefined
Defaultundefined
Since2.5.0

rowKey​

DescriptionUnique identifier of the row.
Note: For selection features to work properly, this property is mandatory, and its value must not contain spaces.
Typestring | undefined
Defaultundefined

Slots​

actions​

DescriptionDefines the actions of the component.
Note: Use ui5-table-row-action or ui5-table-row-action-navigation for the intended design.
TypeArray<TableRowActionBase>
Since2.7.0

default​

DescriptionDefines the cells of the component.
Note: Use ui5-table-cell for the intended design.
TypeArray<TableCell>

status​

DescriptionDefines the status indicator of the row.
Note: The status is only rendered if the ui5-table-header-row contains a ui5-table-header-row-status.
TypeArray<TableRowStatus>
Since2.30.0

Events​

No events available for this component.

Methods​

No methods available for this component.

CSS Parts​

No CSS parts available for this component.

CSS Custom States​

No CSS custom states available for this component.