MCPcopy Index your code
hub / github.com/UI5/webcomponents / navigateRight

Method navigateRight

packages/main/src/Carousel.ts:625–634  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

623 }
624
625 async navigateRight() {
626 let newFocusedItemIndex = this._focusedItemIndex + 1;
627 if (this.cyclic && newFocusedItemIndex > this.items.length - 1) {
628 newFocusedItemIndex = 0;
629 }
630
631 this._changeFocusIndex(newFocusedItemIndex);
632 await renderFinished();
633 this.focusItem();
634 }
635
636 async navigateArrowRight() {
637 let newCurrentPageIndex = this._currentPageIndex + 1;

Callers 2

_updateScrollingMethod · 0.95
_onkeydownMethod · 0.95

Calls 3

_changeFocusIndexMethod · 0.95
focusItemMethod · 0.95
renderFinishedFunction · 0.85

Tested by

no test coverage detected