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

Method navigateLeft

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

Source from the content-addressed store, hash-verified

612 }
613
614 async navigateLeft() {
615 let newFocusedItemIndex = this._focusedItemIndex - 1;
616 if (this.cyclic && newFocusedItemIndex < 0) {
617 newFocusedItemIndex = this.items.length - 1;
618 }
619
620 this._changeFocusIndex(newFocusedItemIndex);
621 await renderFinished();
622 this.focusItem();
623 }
624
625 async navigateRight() {
626 let newFocusedItemIndex = this._focusedItemIndex + 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