How can I access next, prev, slidesCount and currentSlide in the script section? #159
-
Hello there! I'm trying to attach event handlers to the navigation buttons. The goal is to fetch new slides depending on the value of I wonder how can I use the API defined in https://ismail9k.github.io/vue3-carousel/api.html in the script section, and how can I add methods to the navigation buttons in the script? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Just after asking this, I found this post in Stackoverflow how-do-you-call-methods-in-vue3-carousel, and it has been very helpful. Just by doing Now, how can I intercept the calls to |
Beta Was this translation helpful? Give feedback.
Just after asking this, I found this post in Stackoverflow how-do-you-call-methods-in-vue3-carousel, and it has been very helpful. Just by doing
<Carousel ref="vuecarousel" >...</Carousel>
I can access the data and the API exposed withthis.$refs.vuecarousel
.Now, how can I intercept the calls to
next
andprev
so I can enhance them?