Add a class to the dataTables_empty cell

Add a class to the dataTables_empty cell

asacarterasacarter Posts: 3Questions: 1Answers: 0

How do I add a class to the cell with the existing class "dataTables_empty cell".

CreatedCell doesn't return anything when there is no data in the table:

createdCell: function (td, cellData, rowData, row, col) { console.log (td, cellData, rowData, row, col); ....

Answers

  • colincolin Posts: 15,146Questions: 1Answers: 2,586

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • asacarterasacarter Posts: 3Questions: 1Answers: 0
    edited January 2020

    When I create an example here, it's not displaying an empty table message for an empty table:

    http://live.datatables.net/cumiqupe/1/edit

    In my use case I'm using server side so can't replicate the full example here.

This discussion has been closed.