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

Method _togglePopover

packages/main/src/TabContainer.ts:1391–1399  ·  view source on GitHub ↗
(opener: HTMLElement, setInitialFocus = false)

Source from the content-addressed store, hash-verified

1389 }
1390
1391 async _togglePopover(opener: HTMLElement, setInitialFocus = false) {
1392 this.responsivePopover = await this._respPopover();
1393
1394 if (this.responsivePopover.open) {
1395 this._closePopover();
1396 } else {
1397 await this._showPopoverAt(opener, setInitialFocus);
1398 }
1399 }
1400
1401 async _showPopoverAt(opener: HTMLElement, setInitialFocus = false, preventInitialFocus = false) {
1402 this._hasScheduledPopoverOpen = true;

Callers 3

_onTabStripClickMethod · 0.95
_onOverflowClickMethod · 0.95

Calls 3

_respPopoverMethod · 0.95
_closePopoverMethod · 0.95
_showPopoverAtMethod · 0.95

Tested by

no test coverage detected