Skip to content

How can I access next, prev, slidesCount and currentSlide in the script section? #159

Answered by alvaro-sbxx
alvaro-sbxx asked this question in Q&A
Discussion options

You must be logged in to vote

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 with this.$refs.vuecarousel.

Now, how can I intercept the calls to next and prev so I can enhance them?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ismail9k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant