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

Method onAfterRendering

packages/main/src/TabContainer.ts:408–432  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

406 }
407
408 onAfterRendering() {
409 if (!this.items.length) {
410 return;
411 }
412
413 this._setItemsForStrip();
414
415 if (!this.shadowRoot!.contains(document.activeElement)) {
416 const focusStart = this._getRootTab(this._selectedTab);
417
418 if (focusStart) {
419 this._itemNavigation.setCurrentItem(focusStart);
420 }
421 }
422
423 if (this.responsivePopover?.open) {
424 const popoverItems = this._getPopoverItemsFor(this._getPopoverOwner(this.responsivePopover.opener as HTMLElement));
425
426 if (popoverItems.length) {
427 this._setPopoverItems(popoverItems);
428 } else {
429 this._closePopover();
430 }
431 }
432 }
433
434 onEnterDOM() {
435 ResizeHandler.register(this._getHeader(), this._handleResizeBound);

Callers

nothing calls this directly

Calls 8

_setItemsForStripMethod · 0.95
_getRootTabMethod · 0.95
_getPopoverItemsForMethod · 0.95
_getPopoverOwnerMethod · 0.95
_setPopoverItemsMethod · 0.95
_closePopoverMethod · 0.95
containsMethod · 0.80
setCurrentItemMethod · 0.80

Tested by

no test coverage detected