Vuetify: [Feature Request] Get the current item displayed in Carousel

Created on 27 Nov 2017  路  5Comments  路  Source: vuetifyjs/vuetify

New Functionality

I can display detail information about the carousel item

Improvements

Will allow me to use vuetify's carousel instead of using another library

Bugs or Edge Cases it Helps Avoid

Improves flexibility of the carousel components

Most helpful comment

For the benefit of others, here is an example:

<v-carousel v-model="carouselIndex">
    <v-carousel-item v-for="(src,i) in images" :src="src" :key="i"></v-carousel-item>
</v-carousel>
<span>Current Index: {{carouselIndex}}</span>

All 5 comments

I can just use v-model. Did not see it clearly, my bad

For the benefit of others, here is an example:

<v-carousel v-model="carouselIndex">
    <v-carousel-item v-for="(src,i) in images" :src="src" :key="i"></v-carousel-item>
</v-carousel>
<span>Current Index: {{carouselIndex}}</span>

Is carouselIndex a predefined attribute/property or we need to define it into the data?

carouselIndex is not working in my case @andrewharvey . I want to get the current index of active slide and then push to a different route if that carousel item is active.

Ppease do not comment closed issues. For general questions, please join the Discord chat room. You can also check reddit or stackoverflow.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dschreij picture dschreij  路  3Comments

aaronjpitts picture aaronjpitts  路  3Comments

gluons picture gluons  路  3Comments

alterhu2020 picture alterhu2020  路  3Comments

dohomi picture dohomi  路  3Comments