ismail9k / vue3-carousel

Vue 3 carousel component
https://ismail9k.github.io/vue3-carousel/
MIT License
660 stars 164 forks source link

Methods missing #78

Closed ChristianWalterMedia closed 2 years ago

ChristianWalterMedia commented 2 years ago

I need a way to include custom navigation buttons or methods to control the slider with custom buttons.

ismail9k commented 2 years ago

This part is missing in the docs. You can check those methods used to navigate the carousel component

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

FelipeGangrel commented 2 years ago

Same issue

FelipeGangrel commented 2 years ago

It`s not clear how to access those internal methods via parent component

ismail9k commented 2 years ago

You need to add a reference to the carousel component

<Carousel ref="myCarousel">
   ...
</Carousel>

Then you can use any methods that are exposed, you can find them at docs

this.$refs.myCarousel.next()