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

feat: Add column_display_names to ui.table #1008

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

mattrunyon
Copy link
Collaborator

Fixes #653. Adds column_display_names prop to ui.table which allows users to rename a column for display purposes. The original column name is still shown in column statistics. The column widths should be initially sized based on the display name.

Can test with this Python

from deephaven import ui
import deephaven.plot.express as dx

t = ui.table(
    dx.data.stocks(),
    column_display_names={
        "Price": "Price (USD)",
        "Side": "Buy/Sell"
    }
)

@mattrunyon mattrunyon requested a review from a team November 11, 2024 19:42
@mattrunyon mattrunyon self-assigned this Nov 11, 2024
@mattrunyon mattrunyon requested review from bmingles and removed request for a team November 11, 2024 19:42
Copy link
Contributor

@bmingles bmingles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Verified the mapping with provided script.

@mattrunyon mattrunyon merged commit 1343ec8 into deephaven:main Nov 12, 2024
17 checks passed
@mattrunyon mattrunyon deleted the ui-table-display-columns branch November 12, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui.table DisplayColumn - allow display names to be added to columns
3 participants