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

Function TableTemplate

packages/main/src/TableTemplate.tsx:7–63  ·  view source on GitHub ↗
(this: Table)

Source from the content-addressed store, hash-verified

5import BusyIndicator from "./BusyIndicator.js";
6
7export default function TableTemplate(this: Table) {
8 return (
9 <>
10 <div id="before" role="none" tabindex={0} ui5-table-dummy-focus-area></div>
11
12 <div id="table" role="grid"
13 style={this.styles.table}
14 aria-label={this._ariaLabel}
15 aria-description={this._ariaDescription}
16 aria-rowcount={this._ariaRowCount}
17 aria-colcount={this._ariaColCount}
18 aria-multiselectable={this._ariaMultiSelectable}
19 >
20 <slot name="headerRow"></slot>
21
22 <div id="rows">
23 <div id="spacer" style={this.styles.spacer}>
24 <slot></slot>
25 </div>
26 </div>
27
28 { this.rows.length === 0 &&
29 <TableRow id="no-data-row">
30 <TableCell id="no-data-cell" data-excluded-from-navigation horizontal-align="Center">
31 { this.noData.length > 0 ?
32 <slot name="noData"></slot>
33 :
34 this._effectiveNoDataText
35 }
36 </TableCell>
37 </TableRow>
38 }
39
40 <DropIndicator
41 orientation="Horizontal"
42 ownerReference={this}
43 ></DropIndicator>
44
45 <div aria-hidden="true" id="table-end-row"></div>
46
47 { this.loading &&
48 <BusyIndicator id="loading"
49 delay={this.loadingDelay}
50 active={true}
51 data-sap-focus-ref
52 ></BusyIndicator>
53 }
54 </div>
55
56 <div id="after" role="none" tabindex={0} ui5-table-dummy-focus-area></div>
57
58 { this.rows.length > 0 && this._getGrowing()?.hasGrowingComponent() &&
59 <slot name={this._getGrowing()?._individualSlot}></slot>
60 }
61 </>
62 );
63}

Callers

nothing calls this directly

Calls 2

_getGrowingMethod · 0.80
hasGrowingComponentMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…