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

Method _onOverflowClick

packages/main/src/TabContainer.ts:952–969  ·  view source on GitHub ↗
(e: Event)

Source from the content-addressed store, hash-verified

950 }
951
952 async _onOverflowClick(e: Event) {
953 if ((e.target as HTMLElement).classList.contains("ui5-tc__overflow")) {
954 // the empty area in the overflow was clicked
955 return;
956 }
957
958 const overflow = e.currentTarget as HTMLElement;
959 const isEndOverflow = overflow.classList.contains("ui5-tc__overflow--end");
960 let opener;
961
962 if (isEndOverflow) {
963 opener = this.overflowButton[0] || this._getEndOverflowBtnDOM();
964 } else {
965 opener = this.startOverflowButton[0] || this._getStartOverflowBtnDOM();
966 }
967
968 await this._togglePopover(opener, true);
969 }
970
971 _sendOverflowPresentationInfos(items: Array<ITab>) {
972 const semanticIcons = items

Callers 1

_onOverflowKeyDownMethod · 0.95

Calls 4

_getEndOverflowBtnDOMMethod · 0.95
_togglePopoverMethod · 0.95
containsMethod · 0.80

Tested by

no test coverage detected