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

Method navigateArrowLeft

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

Source from the content-addressed store, hash-verified

645 }
646
647 async navigateArrowLeft() {
648 let newCurrentPageIndex = this._currentPageIndex - 1;
649 if (this.cyclic && newCurrentPageIndex < 0) {
650 newCurrentPageIndex = this.items.length - 1;
651 }
652
653 this._changePageIndex(newCurrentPageIndex);
654 await renderFinished();
655 this.focusItem();
656 }
657
658 focusItem() {
659 this.carouselItemDomRef(this._focusedItemIndex)[0].focus({ preventScroll: true });

Callers 1

_navButtonClickMethod · 0.95

Calls 3

_changePageIndexMethod · 0.95
focusItemMethod · 0.95
renderFinishedFunction · 0.85

Tested by

no test coverage detected