Calling methods in vue3-carousel: how to do it?
P粉450744515
P粉450744515 2024-03-21 18:47:58
0
1
439

I am very new to using vue. I just encountered a simple problem. How to access the API provided by vue3-carousel according to the documentation: https://ismail9k.github.io/vue3-carousel/getting-started.html

Under the API section, the library provides some methods, for example I want to use the slideTo(index: number) method provided by the documentation to start the carousel on the second item instead of the default first item.

P粉450744515
P粉450744515

reply all(1)
P粉464088437

Internally, vue3-carousel uses the expose method in the composition API, which exposes properties/methods on the component instance through a template reference.



sssccc
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template