-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
QTable - functions for setting row style / classes (table-row-style / table-row-class) #8311
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
Comments
Related #7723 |
I think having a possibility to do this would be a great addition to the QTable. Stumbled upon this issue while searching for a way to highlight a full row in a table based on some criteria. In our case, we’d like to highlight a task list based on the due date and / or status. Since we have quite some custom |
@rstoenescu 👀 |
To highlight a row, can add function in cell classes props / style props:
|
@orzinc Thanks for the suggestion! I use this for styling as a fix currently, but it doesn't work if you have a selection column. And a feature for this is already implemented, hoping it'll get merged soon :) |
It seems that But I don't understand what the |
@orzinc Your solution is good. But works only when all colums described in |
New QTable props will be available in Quasar v2.18.0 -> |
…class-fn) to one of the styling examples #8311
Uh oh!
There was an error while loading. Please reload this page.
Sometimes base on some criterias we want to set the TR style / class. The most common example would be coloring the whole row if a record has property set to certain value - let's say reddish background for erros in log viewer.
The functions could take props as a parameter. For instance:
and methods
Currently I'm using the
body
slot, but it could be problematic espacially with dynamic column setup "wide" (multi columns) tables.The text was updated successfully, but these errors were encountered: