Individual cell classes #335
-
Is it possible to have individual classes on different rows of a column? I have a scenario where the background color of a cell should be set based on a value in the cell. All original classes are wiped on init, the cellClass only seems to work for the whole column, and i can't get a data attribute set on the dom like this to work |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Please take a look at the demos.
|
Beta Was this translation helpful? Give feedback.
-
Ah got it, found this https://fiduswriter.github.io/simple-datatables/demos/4-render-column-cell/ I can work with that. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thanks to @SandroHc in version 9.0.0 it is now possible to directly have attributes attached to individual cells. See https://fiduswriter.github.io/simple-datatables/demos/25-cell-attributes/ |
Beta Was this translation helpful? Give feedback.
Thanks to @SandroHc in version 9.0.0 it is now possible to directly have attributes attached to individual cells. See https://fiduswriter.github.io/simple-datatables/demos/25-cell-attributes/