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] Show heading text rather than column name when grouping in data table #11516

Closed
JohnM-oss opened this issue May 28, 2020 · 3 comments
Assignees
Labels
C: VDataTable VDatatable has workaround T: bug Functionality that does not work as intended/expected
Milestone

Comments

@JohnM-oss
Copy link

Problem to solve

I have a v-data-table, and I have a column "real_user_name" which has the heading text "User Name". But when I group by real_user_name, it shows "real_user_name" as the group title instead of "User Name".

This is not the desired behaviour as I would rather it showed the display name of the column rather than the ugly underscore case column name.

Proposed solution

Change the group by feature to show the display name of the column (as defined in 'text' property of 'headers').

@ghost ghost added the S: triage label May 28, 2020
@KaelWD
Copy link
Member

KaelWD commented May 29, 2020

This seems like a bug to me, I don't know why you'd want to see the underlying property name for groups like that.

@KaelWD KaelWD added C: VDataTable VDatatable T: bug Functionality that does not work as intended/expected and removed S: triage labels May 29, 2020
@nekosaur nekosaur self-assigned this May 29, 2020
@NicoAiko
Copy link

NicoAiko commented Feb 1, 2021

Sorry for the bump, but could this get more attention?

@KaelWD
Copy link
Member

KaelWD commented Jul 6, 2022

Workaround with the group.header slot: https://codepen.io/kaelwd/pen/OJvMOOr?editors=1010

@KaelWD KaelWD assigned KaelWD and unassigned nekosaur Jul 6, 2022
@KaelWD KaelWD added this to the v2.6.x milestone Jul 6, 2022
@KaelWD KaelWD closed this as completed in 100053f Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VDataTable VDatatable has workaround T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

4 participants