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

Method findContainer

packages/base/src/features/F6Navigation.ts:194–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192 }
193
194 findContainer() {
195 const htmlElement = window.document.querySelector("html");
196 let element = this.deepActive(window.document);
197
198 while (element && element !== htmlElement) {
199 const closestScopeEl = element.closest<HTMLElement>("[data-sap-ui-fastnavgroup-container='true']");
200
201 if (closestScopeEl) {
202 return closestScopeEl;
203 }
204
205 element = getParentElement(element);
206 }
207
208 return document.body;
209 }
210
211 setSelectedGroup(root: DocumentOrShadowRoot = window.document) {
212 const htmlElement = window.document.querySelector("html");

Callers 1

updateGroupsMethod · 0.95

Calls 2

deepActiveMethod · 0.95
getParentElementFunction · 0.85

Tested by

no test coverage detected