Skip to content

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

@mattrunyon mattrunyon requested a review from mofojed July 5, 2024 21:53
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