Every line of 'owl carousel 2 custom next prev' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
63 next(options?: any[]) { 64 this.trigger('next.owl.carousel', options); 65 }
134 private showPrevItem(resetInterval: boolean = false): void { 135 if (!this.swipeDisabled && this.isIndexValid(this.propIndex - 1)) { 136 this.showItem(this.propIndex - 1, resetInterval); 137 } 138 }
114 prev() { 115 this.cycleToPrev(); 116 this._restartTimer(); 117 }
215 nextCarousel() { 216 if (!this.isCarouselAnimate) { 217 this.carouselIndex++; 218 if (this.carouselIndex > this.carouselCount) { 219 this.carouselIndex = 1; 220 } 221 this.moveCarousel(this.getTransform() - this.carouselWidth); 222 } 223 }
138 prev() { 139 this.galleryRef.prev(); 140 }
148 keyPrev() { 149 if (this.keyboard) { 150 this.prev(); 151 } 152 }
277 togglePrevNext(index) { 278 const {onSwiped} = this.props; 279 this.goToSlide(index); 280 onSwiped && onSwiped(this.currentIndex, this.isLastReached); 281 }
127 next() { 128 if (!this._isSliding) { 129 this._slide(Direction.NEXT); 130 } 131 }
356 value: function prev() { 357 this.slide(-1); 358 }
31 public goPrev() { 32 this.pagerChange.emit(this.pager.goPrev()); 33 }