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

Method navigateArrowRight

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

Source from the content-addressed store, hash-verified

634 }
635
636 async navigateArrowRight() {
637 let newCurrentPageIndex = this._currentPageIndex + 1;
638 if (this.cyclic && newCurrentPageIndex > this.items.length - this.effectiveItemsPerPage) {
639 newCurrentPageIndex = 0;
640 }
641
642 this._changePageIndex(newCurrentPageIndex);
643 await renderFinished();
644 this.focusItem();
645 }
646
647 async navigateArrowLeft() {
648 let newCurrentPageIndex = this._currentPageIndex - 1;

Callers 1

_navButtonClickMethod · 0.95

Calls 3

_changePageIndexMethod · 0.95
focusItemMethod · 0.95
renderFinishedFunction · 0.85

Tested by

no test coverage detected