-
-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report] data-table mobile view with custom slots #9436
Comments
The way this is (supposed) to work currently is that you will have to define your own row markup for when table is in mobile view by checking the scoped slot prop ( |
in ver 1.5.13 |
filteredItems is the visible rows |
Sorry , i misunderstood the docs |
Hi, what is the status of this issue? Is someone currently working on that or planning to solve it? |
…taTable and DataIterator Add possibility to customize 'item' slot in DataTable and DataIterator in mobile view by introducing isMobile property to be available in the scope. fix vuetifyjs#9436
… scope (#10345) fixes #8394 fixes #9436 * fix(vdatatable): add isMobile property to custom item slot scop in DataTable and DataIterator Add possibility to customize 'item' slot in DataTable and DataIterator in mobile view by introducing isMobile property to be available in the scope. * test(vdatatable): fix snapshots Fix test snapshots * refactor(vdatatable): refactor DataTable and DataIterator isMobile property Code refactor connected to code multiplication & fix tests * refactor(vdatatable): space fix Space fix * refactor(vdatatable): typo fix Typo fix * style(vdatatable): typo fix Typo fix * refactor(vdataiterator): code refactor (small review changes) * style(vdataiterator): typo fix Typo fix
… scope (vuetifyjs#10345) fixes vuetifyjs#8394 fixes vuetifyjs#9436 * fix(vdatatable): add isMobile property to custom item slot scop in DataTable and DataIterator Add possibility to customize 'item' slot in DataTable and DataIterator in mobile view by introducing isMobile property to be available in the scope. * test(vdatatable): fix snapshots Fix test snapshots * refactor(vdatatable): refactor DataTable and DataIterator isMobile property Code refactor connected to code multiplication & fix tests * refactor(vdatatable): space fix Space fix * refactor(vdatatable): typo fix Typo fix * style(vdatatable): typo fix Typo fix * refactor(vdataiterator): code refactor (small review changes) * style(vdataiterator): typo fix Typo fix
… scope (vuetifyjs#10345) fixes vuetifyjs#8394 fixes vuetifyjs#9436 * fix(vdatatable): add isMobile property to custom item slot scop in DataTable and DataIterator Add possibility to customize 'item' slot in DataTable and DataIterator in mobile view by introducing isMobile property to be available in the scope. * test(vdatatable): fix snapshots Fix test snapshots * refactor(vdatatable): refactor DataTable and DataIterator isMobile property Code refactor connected to code multiplication & fix tests * refactor(vdatatable): space fix Space fix * refactor(vdatatable): typo fix Typo fix * style(vdatatable): typo fix Typo fix * refactor(vdataiterator): code refactor (small review changes) * style(vdataiterator): typo fix Typo fix
Environment
Vuetify Version: 2.1.5
Vue Version: 2.6.10
Browsers: Chrome 76.0.3809.87
OS: Linux x86_64
Steps to reproduce
add custom item slot to data-table
Expected Behavior
the two table should render the same in mobile view
Actual Behavior
the table with custom slot column doesn't stack
Reproduction Link
https://codepen.io/AshrafBasry/pen/QWWdeML
Other comments
i searched in the data-tables docs for how to make this work but i couldn't find any thing about mobile view.
and why slot items props.index is no longer refer to items index like the previous versions and refer to the visible rows index !!
The text was updated successfully, but these errors were encountered: