Color extra info child rows
Color extra info child rows
Tripple Delta
Posts: 8Questions: 1Answers: 0
in General
Link to test case: https://www.datatables.net/examples/api/row_details.html
When clicking on the arrow extra info is shown. But the background color is always white. Is there a way to change that color?
This question has an accepted answers - jump to answer
Answers
I would just wrap this in a div-tag and add the style for the background color to that div.
Maybe something like this could work (haven't tested it):
@rf1234 has a good and simple answer. Another option is to use use CSS. If you inspect the parent row you will see the class
dt-hasChild
is applied when the child is shown. You can use a CSS like this:https://live.datatables.net/nubiworo/1/edit
Two options to choose from
Kevin
Thanks a lot. But I had to change it like this to keep it alternating.