elin-r
4/24/2018 - 12:18 AM

Datatables Index Column

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