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: UI table layout hints #587

Merged
merged 6 commits into from
Jul 9, 2024

Conversation

mattrunyon
Copy link
Collaborator

@mattrunyon mattrunyon commented Jun 27, 2024

Fixes #442

The layout hints will only be used as the initial state. Not sure how we'd want to try to combine a change in ui.table from the server w/ other changes the user may have made already. At least initially I think this is fine to give the same functionality as current table.layout_hints

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

_stocks = dx.data.stocks()

stocks_with_hints = ui.table(
    _stocks,
    front_columns=["exchange"],
    frozen_columns=["sym"],
    back_columns=['side'],
    hidden_columns=['dollars', 'SPet500'],
    column_groups=[{"name": "test_group", "children": ["size", "random"], "color": "lemonchiffon"}]
)

@mattrunyon mattrunyon requested a review from mofojed June 27, 2024 19:58
@mattrunyon mattrunyon self-assigned this Jun 27, 2024
@mattrunyon mattrunyon changed the title UI table layout hints feat: UI table layout hints Jun 27, 2024
Copy link
Member

@mofojed mofojed left a comment

Choose a reason for hiding this comment

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

Small change about the color

plugins/ui/src/deephaven/ui/types/types.py Outdated Show resolved Hide resolved
@mattrunyon mattrunyon requested a review from mofojed July 5, 2024 21:53
@mofojed mofojed merged commit 5e3c5e2 into deephaven:main Jul 9, 2024
14 checks passed
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 Layout hints
2 participants