Vuetify: [Feature Request] VDataTable: add missing index variable in "item.<name>" scoped slot

Created on 21 Feb 2020  路  2Comments  路  Source: vuetifyjs/vuetify

Problem to solve

It would be very useful for adding a column with row index, and using index for custom stuff in a cell.

Proposed solution

Inside the scoped slot "item.", the props should also contain the "index" property, like in the "item" scoped slot (cf #8199 and #8283).

VDataTable has PR feature

Most helpful comment

Yes, please add 'index'. Otherwise I have to render columns manually using slot "item" for displaying the row index.

All 2 comments

Yes, please add 'index'. Otherwise I have to render columns manually using slot "item" for displaying the row index.

Any news ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JacksMyth picture JacksMyth  路  68Comments

wernerm picture wernerm  路  42Comments

lukef picture lukef  路  30Comments

mitar picture mitar  路  38Comments

amesas picture amesas  路  81Comments