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

Method scrollToContentItem

packages/fiori/src/Wizard.ts:954–956  ·  view source on GitHub ↗

* Scrolls to the content item within the `ui5-wizard` shadowDOM * by given step index. * @private * @param stepIndex the index of a step

(stepIndex: number)

Source from the content-addressed store, hash-verified

952 * @param stepIndex the index of a step
953 */
954 scrollToContentItem(stepIndex: number) {
955 this.contentDOM.scrollTop = this.getClosestScrollPosByStepIndex(stepIndex);
956 }
957
958 /**
959 * Returns to closest scroll position for the given step index.

Callers 2

scrollToSelectedStepMethod · 0.95

Calls 1

Tested by

no test coverage detected