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

Method _onOverflowStepButtonClick

packages/fiori/src/Wizard.ts:608–619  ·  view source on GitHub ↗
(e: UI5CustomEvent<Button, "click">)

Source from the content-addressed store, hash-verified

606 }
607
608 _onOverflowStepButtonClick(e: UI5CustomEvent<Button, "click">) {
609 const tabs = Array.from(this.stepsInHeaderDOM);
610 const eTarget = e.target as HTMLElement;
611 const stepRefId = eTarget.getAttribute("data-ui5-header-tab-ref-id");
612 const stepToSelect = this.slottedSteps[Number(stepRefId) - 1];
613 const selectedStep = this.selectedStep;
614 const newlySelectedIndex = this.slottedSteps.indexOf(stepToSelect);
615
616 this.switchSelectionFromOldToNewStep(selectedStep, stepToSelect, newlySelectedIndex, false);
617 this._closeRespPopover();
618 tabs[newlySelectedIndex].focus();
619 }
620
621 _closeRespPopover() {
622 const responsivePopover = this._respPopover();

Callers

nothing calls this directly

Calls 3

_closeRespPopoverMethod · 0.95
focusMethod · 0.45

Tested by

no test coverage detected