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 format default values #983

Open
mattrunyon opened this issue Oct 31, 2024 · 0 comments
Open

ui.table format default values #983

mattrunyon opened this issue Oct 31, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@mattrunyon
Copy link
Collaborator

There are cases where a user may want to reset a formatting value to default with a higher priority rule.

For example, in this code the 2nd rule would apply background_color and the user may want to switch back to our default color handling which would pick a contrasting light/dark color instead of applying the color from the first rule.

format_=[
  ui.TableFormat(color="negative"),
  ui.TableFormat(cols=["X", "Y"], background_color="negative",  color="default")
]

We could handle this as the difference between None and Undefined with #549. However, it might make more sense semantically to allow a value like default

@mattrunyon mattrunyon added enhancement New feature or request triage labels Oct 31, 2024
@vbabich vbabich added this to the Backlog milestone Nov 5, 2024
@vbabich vbabich removed the triage label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants