Is it possible to have alternative color for every 5 rows?
Is it possible to have alternative color for every 5 rows?
This question has an accepted answers - jump to answer
This discussion has been closed.
This question has an accepted answers - jump to answer
Answers
on "draw" loop through the rows and adjust the color.
https://datatables.net/reference/event/draw
You could use this iterator:
https://datatables.net/reference/api/rows().every()
Another option would be to use
nth-child()
in your CSS with a suitable formula.Allan
I use nth-child() in CSS. Thanks.