MCPcopy Create free account
hub / github.com/UI5/webcomponents / TableGroupRow

Class TableGroupRow

packages/main/src/TableGroupRow.ts:61–118  ·  view source on GitHub ↗

* @class * * ### Overview * * 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`, alongsi

Source from the content-addressed store, hash-verified

59 * @public
60 */
61@customElement({
62 tag: "ui5-table-group-row",
63 styles: [TableRowBase.styles, TableGroupRowCss],
64 template: TableGroupRowTemplate,
65})
66class TableGroupRow extends TableRow {
67 @query("#group-cell")
68 _groupCell!: TableCell;
69
70 constructor() {
71 super();
72 Object.defineProperty(this, "cells", {
73 get: () => EMPTY_CELLS,
74 });
75 Object.defineProperty(this, "actions", {
76 get: () => EMPTY_ACTIONS,
77 });
78 }
79
80 isGroupRow(): boolean {
81 return true;
82 }
83
84 onEnterDOM() {
85 super.onEnterDOM();
86 this.toggleAttribute("ui5-table-row", true);
87 this.setAttribute("aria-roledescription", TableGroupRow.i18nBundle.getText(TABLE_GROUP_ROW));
88 }
89
90 get _tableSelection() {
91 return undefined;
92 }
93
94 get _hasSelector() {
95 return false;
96 }
97
98 get _isSelectable() {
99 return false;
100 }
101
102 get _isInteractive() {
103 return false;
104 }
105
106 get _isNavigable() {
107 return false;
108 }
109
110 get _hasPopin() {
111 return false;
112 }
113
114 get _ariaColSpan(): number {
115 const colSpan = this._table?.headerRow[0]?._visibleCells.length ?? 1;
116 return (this._renderDummyCell) ? colSpan - 1 : colSpan;
117 }
118}

Callers

nothing calls this directly

Calls 2

customElementFunction · 0.85
queryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…