-
Anyone got any thoughts on how to use multiple tabulators within an app but with different css styles applied? Is there perhaps some way to add a consistent class to a table, row, cell and then use that class within my app's |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Tabulator is just an HtmlTemplate You can then combine it with the css selectors as defined here: |
Beta Was this translation helpful? Give feedback.
-
This was a very helpful post! and just to add a bit more to it. Here is a role I have for my tables to give them curved edges and a rule for selected rows: .anvil-role-tabulator-base {
border-radius: 10px;
/* Adjust the value to change the curvature */
padding: 5px;
}
.anvil-role-tabulator-base .tabulator-selected {
background-color: %color:Primary Container% !important;
color: %color:On Primary Container% !important;
} Just because I was still having difficulties with implementation. |
Beta Was this translation helpful? Give feedback.
Tabulator is just an HtmlTemplate
do you want a role property?
You can then combine it with the css selectors as defined here:
https://tabulator.info/docs/5.5/style#css