Color extra info child rows
Color extra info child rows
![Tripple Delta](https://secure.gravatar.com/avatar/8f123619fae5257d243a2901a95f164c/?default=https%3A%2F%2Fvanillicon.com%2F8f123619fae5257d243a2901a95f164c_200.png&rating=g&size=120)
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![:smile: :smile:](https://datatables.net/forums/resources/emoji/smile.png)
Kevin
Thanks a lot. But I had to change it like this to keep it alternating.