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] add slots for colgroup and col in v-data-table #5597

Open
Rob89 opened this issue Nov 13, 2018 · 4 comments
Open

[Feature Request] add slots for colgroup and col in v-data-table #5597

Rob89 opened this issue Nov 13, 2018 · 4 comments
Labels
C: VDataTable VDatatable maybe Functionality that we are considering T: feature A new feature
Milestone

Comments

@Rob89
Copy link

Rob89 commented Nov 13, 2018

Problem to solve

Allow use of <colgroup> and <col> within a Vuetify table. These elements can be invaluable when styling tables - e.g. adding dividers between groups of columns.

Proposed solution

One option would be to pass the colgroup definitions as props, like this.

@nekosaur nekosaur added the pending review The issue is still pending disposition label Nov 13, 2018
@nekosaur
Copy link
Member

We will be utilizing colgroups for internal functionality in the coming data-table rewrite. But perhaps we should expose a slot where you can override them.

@nekosaur nekosaur self-assigned this Nov 13, 2018
@Rob89
Copy link
Author

Rob89 commented Nov 13, 2018

A slot would do the job too. I was reluctant to suggest that as colgroup needs to be a direct child of the table so the slot felt like quite a big 'hole' in the template.

@MajesticPotatoe MajesticPotatoe added T: feature A new feature C: VDataTable VDatatable labels Apr 10, 2019
@KaelWD KaelWD removed pending review The issue is still pending disposition labels Apr 14, 2019
@johnleider johnleider added the maybe Functionality that we are considering label Nov 19, 2020
@johnleider johnleider added this to the v3.x.x milestone Nov 19, 2020
@johnleider johnleider changed the title [Feature Request] Support colgroup and col in Data Table component [Feature Request] add slots for colgroup and col in v-data-table Nov 19, 2020
@johnleider johnleider added this to To do in Vuetify 3 - Titan via automation Nov 30, 2020
@sugoidesune
Copy link

I would like to be able to set width: fit-content on some of the cols in colgroup

  • Slots would work.
  • dedicated class names on the cols in the colgroup would work too.
  • setting through headers prop would also work.

@mutualcredence
Copy link

setting through headers prop would also work.

Setting the width property in header does not work when the default header is hidden using hide-default-header attribute.
Vuetify has to allow other way to customize column style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VDataTable VDatatable maybe Functionality that we are considering T: feature A new feature
Projects
No open projects
Development

No branches or pull requests

7 participants