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

ui.table Formatting #596

Open
Tracked by #77
mofojed opened this issue Jul 2, 2024 · 1 comment
Open
Tracked by #77

ui.table Formatting #596

mofojed opened this issue Jul 2, 2024 · 1 comment

Comments

@mofojed
Copy link
Member

mofojed commented Jul 2, 2024

Needs design spec

@mofojed mofojed mentioned this issue Jul 2, 2024
17 tasks
@mofojed mofojed changed the title Formatting ui.table Formatting Jul 2, 2024
@mofojed
Copy link
Member Author

mofojed commented Jul 19, 2024

From deephaven/deephaven-core#5817

As a user, I want to be able to call formatRowWhere more than once/have a method to pass in more than one condition/color pair so that I can easily color my rows using different conditions. For example:

from deephaven import empty_table t = empty_table(10).update(["X = i", "A = A"]) t2 = t.format_row_where("X % 2 == 0", "BLUE") t3 = t2.format_row_where("X % 2 == 1", "GREEN")

Wanted result: a table where rows alternate between blue and green.
Current result: a table where every other row is green, and the other rows are not formatted.

Possible bonus: apply the formats incrementally, with later calls taking precedent, e.g.

from deephaven import empty_table t = empty_table(10).update(["X = i", "A = A"]) t2 = t.format_row_where("X % 3 == 0", "BLUE") t3 = t2.format_row_where("X % 2 == 0", "GREEN")

Would result in some blue and green rows, with green overriding the blue when the condition is true for both.

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

No branches or pull requests

1 participant