Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82286

How to modify child row table

$
0
0

Hi guys, how to change the design of the child row like here https://datatables.net/examples/api/row_details.html

Currently my code:

$(document).ready(function () {
    var emp = $('#countable').DataTable({
        responsive: true,
        order: [[ 2, "asc" ]]
    });

    emp.on('order.dt search.dt', function () {
        emp.column(1, {search:'applied', order:'applied'}).nodes().each(function (cell, i) {
            cell.innerHTML = i+1;
        });
    }).draw();
});

and table:


Viewing all articles
Browse latest Browse all 82286

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>