Open L-K-Mist opened 4 years ago
Hello,
Here is a link with an example of use: https://jsfiddle.net/fx3azq9u/
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)
}
Couldn't find an example where onMainSlideClick event is used. Would you mind pasting an example snippet here?