vue-carousel-3d
vue-carousel-3d copied to clipboard
How to use the onMainSlideClick event?
Couldn't find an example where onMainSlideClick event is used. Would you mind pasting an example snippet here?
I wonder why :on-main-slide-click
works when the other event handlers are using @
.
is it possible to pass the index or the item that I have clicked on?
@gutisalex I don't think you can pass index but you can get the index of the main slide -
<carousel-3d ref="carousel" :on-main-slide-click="onSelect">
onSelect() {
let vm=this;
console.log(this.$refs.carousel.currentIndex)
}