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

Method _onOverflowListItemClick

packages/main/src/TabContainer.ts:871–880  ·  view source on GitHub ↗
(e: CustomEvent<ListItemClickEventDetail>)

Source from the content-addressed store, hash-verified

869 }
870
871 async _onOverflowListItemClick(e: CustomEvent<ListItemClickEventDetail>) {
872 e.preventDefault(); // cancel the item selection
873
874 this._onItemSelect(e.detail.item.id.slice(0, -3), e); // strip "-li" from end of id
875 this._closePopover();
876 await renderFinished();
877
878 const selectedTopLevel = this._getRootTab(this._selectedTab);
879 selectedTopLevel?.getDomRefInStrip()!.focus();
880 }
881
882 /**
883 * Returns all slotted tabs and their subTabs in a flattened array.

Callers

nothing calls this directly

Calls 6

_onItemSelectMethod · 0.95
_closePopoverMethod · 0.95
_getRootTabMethod · 0.95
renderFinishedFunction · 0.85
focusMethod · 0.45
getDomRefInStripMethod · 0.45

Tested by

no test coverage detected