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

Support for multiple display names in ui.table #1009

Open
mattrunyon opened this issue Nov 11, 2024 · 0 comments
Open

Support for multiple display names in ui.table #1009

mattrunyon opened this issue Nov 11, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@mattrunyon
Copy link
Collaborator

As a follow-up to #653, we could support multiple display names for a column and display the longest name that fits in the current width.

A few questions

  1. Do we show the column name or display name in the column statistics? Which display name if we use display name?
  2. Should copy values unformatted include the actual column name and copy formatted include the currently shown display name?

To implement this we will need to make some adjustments to GridRenderer. Either need to modify drawColumnHeader so it gets info about which column is being drawn (could be breaking). Or we could try adding a 3rd prop like getAllDisplayNames to GridModel.textForColumnHeader and then modify the appropriate places in GridRenderer to pass that prop. We will then need to cache truncation of the names and pick the longest fitting name.

@mattrunyon mattrunyon added enhancement New feature or request triage labels Nov 11, 2024
@vbabich vbabich added this to the Backlog milestone Nov 12, 2024
@vbabich vbabich removed the triage label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants