child rows, missing details_open.png and details_clode.png

child rows, missing details_open.png and details_clode.png

embirathembirath Posts: 6Questions: 3Answers: 0

Hi all
I'm trying to add child rows, as described here:
https://datatables.net/examples/api/row_details.html

In the CSS code for the example above, it points to url('../resources/details_open.png') and similarly to a details_close.png.

These don't seem to be part of my download of datatables. Is an extension required? (It doesn't look like that from example, so I must be missing something..? )

I reloaded the datatables again with the exact same plug-ins that I chose before, and I still don't see the resource directory anywhere.
Emma

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,327Questions: 26Answers: 4,949
    Answer ✓

    Not sure if they are part of the download. I have some examples that use this CSS:

    td.details-control {
        background: url('https://www.datatables.net/examples/resources/details_open.png') no-repeat center center;
        cursor: pointer;
    }
    tr.shown td.details-control {
        background: url('https://www.datatables.net/examples/resources/details_close.png') no-repeat center center;
    }
    

    You can download them from there.

    Kevin

  • embirathembirath Posts: 6Questions: 3Answers: 0

    Awesome, thank you so much! That worked :)

This discussion has been closed.