-
Notifications
You must be signed in to change notification settings - Fork 525
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
feat(Table): expand row #1036
feat(Table): expand row #1036
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
I second to this. I had to fallback to a Modal to show expanded info. I also think I should be animated. Can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to implement it with animation, but I didn't get any good results
Would love to see this soon :) |
Any update on this? |
I would love to see this feature released |
any news about this? |
any progress? |
{{ getRowData(row, column.key) }} | ||
</slot> | ||
</td> | ||
</tr> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
</tr> | |
</tr> | |
<slot :name="after-row" :row="row" :index="index" is-opened="openedRows.includes(index)" /> |
or so, to add some more flexibility
for example: dynamically loaded content that renders subsequent table rows while maintaining the width of the original table's columns
currently we have only 'expand' slot which is content of single cell with 100% table width + don't have access to style that tr + td element
@benjamincanac would be great to have this merged. This feature is so missing in NuxtUi tables at the moment. PR has been here for some time. At least, feedback would be appreciated. Thank you |
I'm so sorry for the delay! I've made a few changes to make the button configurable and to animate the icon π |
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This is great! Thanks! |
Great feature! However, Not sure if I should post this here or as a separate bug, but if a table is set as expandable, and the table is empty at the same time, the emptyState will not take up the full width. See screenshot.
simply removing the expand slot immediately solves it. any ui directives or making a custom empty state slot can not fix it. |
@rmbakker88 could I ask you to open up a new issue with a reproduction link? |
Expanding a row by clicking on it is currently not possible. That feature is definitely needed. |
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
π Linked issue
The linked issue is about nested tables, but I think this would also solve.
Resolves #746
β Type of change
π Description
This is my interpretation of #746
Implementation of a table that can be expanded.
Mainly used to show more details of a table row or related content.
π Checklist