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

Method getRowParent

packages/compat/src/Table.ts:1019–1035  ·  view source on GitHub ↗
(child: HTMLElement)

Source from the content-addressed store, hash-verified

1017 }
1018
1019 getRowParent(child: HTMLElement): ITableRow | undefined {
1020 if (child.hasAttribute("ui5-table-row")) {
1021 return child as ITableRow;
1022 }
1023
1024 const parent = child.parentElement;
1025
1026 if (!parent) {
1027 return;
1028 }
1029
1030 if (parent.hasAttribute("ui5-table-row")) {
1031 return parent as ITableRow;
1032 }
1033
1034 return this.getRowParent(parent);
1035 }
1036
1037 get columnHeader(): HTMLElement | null {
1038 const domRef = this.getDomRef();

Callers 2

_handleSingleSelectMethod · 0.95
_handleMultiSelectMethod · 0.95

Calls 1

hasAttributeMethod · 0.80

Tested by

no test coverage detected