MCPcopy
hub / github.com/UI5/webcomponents / TableCell

Class TableCell

packages/compat/src/TableCell.ts:32–74  ·  view source on GitHub ↗

* @class * * ### Overview * * The `ui5-table-cell` component defines the structure of the data in a single `ui5-table` cell. * @constructor * @extends UI5Element * @public * @csspart cell - Used to style the native `td` element * @deprecated Deprecated as of version 2.12.0, use `@ui5/webcom

Source from the content-addressed store, hash-verified

30 * @deprecated Deprecated as of version 2.12.0, use `@ui5/webcomponents/dist/TableCell.js` instead.
31 */
32@customElement({
33 tag: "ui5-table-cell",
34 renderer: jsxRenderer,
35 template: TableCellTemplate,
36 styles: tableCellStyles,
37})
38class TableCell extends UI5Element {
39 /**
40 * @private
41 */
42 @property({ type: Boolean })
43 lastInRow = false;
44
45 /**
46 * @private
47 */
48 @property({ type: Boolean })
49 popined = false;
50
51 /**
52 * @private
53 */
54 @property({ type: Boolean })
55 _popinedInline = false;
56
57 /**
58 * Specifies the content of the component.
59 * @public
60 */
61 @slot({ type: HTMLElement, "default": true })
62 content!: DefaultSlot<HTMLElement>;
63
64 @i18n("@ui5/webcomponents")
65 static i18nBundle: I18nBundle;
66
67 get cellContent(): Array<HTMLElement> {
68 return this.getSlottedNodes<HTMLElement>("content");
69 }
70
71 get ariaLabelEmptyCellText(): string {
72 return TableCell.i18nBundle.getText(ARIA_LABEL_EMPTY_CELL);
73 }
74}
75
76patchScopingSuffix(TableCell);
77

Callers

nothing calls this directly

Calls 4

customElementFunction · 0.85
propertyFunction · 0.85
i18nFunction · 0.85
slotFunction · 0.50

Tested by

no test coverage detected