Getting the "state" of the table

Getting the "state" of the table

nefiganefiga Posts: 8Questions: 4Answers: 0

Is there a public method to get the state of the table. What I'm looking for is not an event for when the table state is saved, but an actual method to explicitly call to get the "state". This would be useful to have an outside method get the sorting/column order/etc. of the data table, without having to create stateSaveCallback, and then explicitly call state.save(), and then retrieve that value.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,791Questions: 1Answers: 10,513 Site admin
    Answer ✓

    There currently isn't a method for that I'm afraid - but it is planned for the next major version of DataTables. Currently you would need to use the API to get the properties you require (that could actually be wrapped up into a plug-in API method itself).

    Allan

This discussion has been closed.