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 display names for columns #105

Open
rbasralian opened this issue Nov 6, 2023 · 1 comment
Open

Support display names for columns #105

rbasralian opened this issue Nov 6, 2023 · 1 comment
Labels
deephaven.ui enhancement New feature or request

Comments

@rbasralian
Copy link

It would be helpful to allow display names for columns in the UI that are different from the actual column names, such as displaying a ChangePct column as Chg% in the UI. We should support names that are not valid Java identifiers too (such as names including spaces or symbols like %/&/etc.)

If you hover over the column headers, you should be able to see the underlying real column name.

Even better would be if multiple column names could be specified, with the UI using the longest name that fits the column's current width in the UI. So as you make a column narrower, its name would update to use a shorter name that fits (so we can avoid truncating and adding ...):

  • ProcessInfoId -> PIId
  • Change% -> Chng% -> Chg%
  • MarketCap -> MktCap
  • GICSIndustryGroup -> IndustryGroup -> IndGroup

Example of what happens now:
image

This would be helpful because longer and more descriptive column names are really helpful when familiarizing yourself with a table and figuring out what you want in a dashboard, but once you generally know what's in a table, you want to make the columns as narrow as possible so that you can fit the most data possible on the screen. (Somewhat related to deephaven/web-client-ui#1486.)

@rbasralian rbasralian added enhancement New feature or request triage labels Nov 6, 2023
@vbabich
Copy link
Contributor

vbabich commented Nov 7, 2023

This is something we can add to the ui.table.

t = ui.table(
    my_table,
    column_display_names={colA: ['My Long Name', 'Shorter Name', 'Shrt'], colB: 'Short Name'}
)

@vbabich vbabich transferred this issue from deephaven/web-client-ui Nov 7, 2023
@vbabich vbabich removed the triage label Nov 7, 2023
jnumainville added a commit that referenced this issue Feb 16, 2024
Here are how my initial attempts line up with the requests:
Display names (#105)
event listener (Fixes #180)

requests from #77:
Show/hide quick filter by default
density
Ability to hide column headers
Ability for the server to specify rows to select
Allow multi/single selection
Allow row selection to be visible with checkboxes (vs just styled as
highlighted, etc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deephaven.ui enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants