10 examples of 'owl carousel 2 custom next prev' in JavaScript

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.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
63next(options?: any[]) {
64 this.trigger('next.owl.carousel', options);
65}
134private showPrevItem(resetInterval: boolean = false): void {
135 if (!this.swipeDisabled && this.isIndexValid(this.propIndex - 1)) {
136 this.showItem(this.propIndex - 1, resetInterval);
137 }
138}
114prev() {
115 this.cycleToPrev();
116 this._restartTimer();
117}
215nextCarousel() {
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}
138prev() {
139 this.galleryRef.prev();
140}
148keyPrev() {
149 if (this.keyboard) {
150 this.prev();
151 }
152}
277togglePrevNext(index) {
278 const {onSwiped} = this.props;
279 this.goToSlide(index);
280 onSwiped && onSwiped(this.currentIndex, this.isLastReached);
281}
127next() {
128 if (!this._isSliding) {
129 this._slide(Direction.NEXT);
130 }
131}
356value: function prev() {
357 this.slide(-1);
358 }
31public goPrev() {
32 this.pagerChange.emit(this.pager.goPrev());
33}

Related snippets