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

Method _getRootTab

packages/main/src/TabContainer.ts:1054–1064  ·  view source on GitHub ↗
(tab: Tab | undefined)

Source from the content-addressed store, hash-verified

1052 }
1053
1054 _getRootTab(tab: Tab | undefined): Tab | undefined {
1055 while (tab?.hasAttribute("ui5-tab")) {
1056 if (tab.parentElement?.hasAttribute("ui5-tabcontainer")) {
1057 break;
1058 }
1059
1060 tab = (tab.parentElement ?? undefined) as Tab | undefined;
1061 }
1062
1063 return tab;
1064 }
1065
1066 _updateEndOverflow(itemsDomRefs: Array<TabInStrip | TabSeparatorInStrip>) {
1067 // show end overflow

Callers 5

onAfterRenderingMethod · 0.95
_setItemsForStripMethod · 0.95
_updateEndOverflowMethod · 0.95

Calls 1

hasAttributeMethod · 0.80

Tested by

no test coverage detected