language.emptytable

language.emptytable

DTCustomUserDTCustomUser Posts: 1Questions: 1Answers: 0

table.fnSettings().oLanguage.sEmptyTable = "Now empty";

What is the equivalent for this in 1.10.11

Answers

  • allanallan Posts: 63,852Questions: 1Answers: 10,519 Site admin

    The settings object is considered to be private and should never be accessed. Why do you need to read information from the settings object?

    Allan

  • JammySlayerJammySlayer Posts: 43Questions: 12Answers: 2
  • allanallan Posts: 63,852Questions: 1Answers: 10,519 Site admin

    Unfortunately, dynamically changing the language variables in DataTables is not something that is currently supported.

    Allan

  • psmerdpsmerd Posts: 9Questions: 0Answers: 0

    DataTables 1.10.13 places a single row, single column with the class 'dataTables_empty' in the table when no rows are returned, so try something like this:

    In the DataTable.initComplete function, add this jQuery directive:

      $('td.dataTables_empty', $theTable).html('Could not find a single row');
    

    where $theTable points to the table being managed by dataTables

This discussion has been closed.