search

Home  >  Q&A  >  body text

Calling methods in vue3-carousel: how to do it?

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粉450744515P粉450744515273 days ago451

reply all(1)I'll reply

  • P粉464088437

    P粉4640884372024-03-22 17:33:15

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

    
    
    sssccc

    reply
    0
  • Cancelreply