Skip to content
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

[Feature Request] Double data-tables expanding row toggling #5123

Closed
brandiwerner opened this issue Sep 19, 2018 · 2 comments
Closed

[Feature Request] Double data-tables expanding row toggling #5123

brandiwerner opened this issue Sep 19, 2018 · 2 comments
Labels
duplicate The issue has already been reported

Comments

@brandiwerner
Copy link

Problem to solve

When there are two data-tables on the same page there is no way that I have found to toggle the expandable rows between the tow tables. What I need to happen is when table 1 has a row expanded I need this row to collapse when the user expands a row on table 2 and vice versa. Here is a codepen with the closest I could get to a solution: https://codepen.io/BrandiW/pen/WgLPej?editors=1010 As you can see in this codepen I am using a variable called Expanded to currently hide the v-card in the extended row that needs to be shut, but the problem is that it is not actually shutting this row. Thus if you want to open this row back up, you have to double click it (once to shut it and another time to reopen it).

Proposed solution

I have yet to find an elegant solution to this problem.

@nekosaur nekosaur added the duplicate The issue has already been reported label Sep 20, 2018
@nekosaur
Copy link
Member

Duplicate of #2890

(Not really, but this can be solved by the proposed solution in that issue)

@VinceWilkie
Copy link

There is a simple way to control the expansion of rows by saving props to a local variable.
Codepen solution: (https://codepen.io/vincentwilkie/pen/GXzOQx?editors=1010)

@lock lock bot locked as resolved and limited conversation to collaborators Sep 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate The issue has already been reported
Projects
None yet
Development

No branches or pull requests

3 participants