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] Support static rows (default slot) in v-data-table #3176

Closed
sindrepm opened this issue Feb 3, 2018 · 0 comments
Closed
Assignees
Labels
T: feature A new feature
Milestone

Comments

@sindrepm
Copy link
Contributor

sindrepm commented Feb 3, 2018

New Functionality

I've recently stumbled across a few use cases where I need to add some rows to a data table regardless of whether the items array contains any elements. These rows should not be affected by the built-in sorting or selection and always appear at the top. I am using this to insert new rows inline, show default items, etc.

It would be very useful if v-date-table could just render out the default slot content at the top of the table tbody. Currently I am using a hacky workaround where I am adding a "dummy" row just to get the items template to render, but this has some limitations and unwanted side effects.

Improvements

Offer a way for developers to easily add "static" rows to a data table.

Bugs or Edge Cases it Helps Avoid

Simplifies certain use cases.

@nekosaur nekosaur added the pending review The issue is still pending disposition label Feb 3, 2018
@nekosaur nekosaur added T: feature A new feature and removed pending review The issue is still pending disposition labels Mar 8, 2018
@nekosaur nekosaur self-assigned this Mar 8, 2018
@nekosaur nekosaur added this to the v1.2.x milestone Apr 13, 2018
@KaelWD KaelWD modified the milestones: v1.2.0, 2.0 Aug 22, 2018
@nekosaur nekosaur mentioned this issue Oct 6, 2018
9 tasks
@johnleider johnleider modified the milestones: 2.0, v2.0.0 Oct 7, 2018
@nekosaur nekosaur mentioned this issue Nov 26, 2018
9 tasks
@blalan05 blalan05 closed this as completed Apr 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T: feature A new feature
Projects
None yet
Development

No branches or pull requests

5 participants