vue-carousel-3d icon indicating copy to clipboard operation
vue-carousel-3d copied to clipboard

How to use the onMainSlideClick event?

Open L-K-Mist opened this issue 4 years ago • 4 comments

Couldn't find an example where onMainSlideClick event is used. Would you mind pasting an example snippet here?

L-K-Mist avatar Jan 15 '20 10:01 L-K-Mist

Hello,

Here is a link with an example of use: https://jsfiddle.net/fx3azq9u/

flavou45 avatar Mar 05 '20 13:03 flavou45

I wonder why :on-main-slide-click works when the other event handlers are using @.

Berkmann18 avatar Mar 16 '20 16:03 Berkmann18

is it possible to pass the index or the item that I have clicked on?

gutisalex avatar Mar 31 '20 10:03 gutisalex

@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)
                   }

kashyappiyush1998 avatar Jul 08 '20 14:07 kashyappiyush1998