stateRestore.ajax
Since: StateRestore 2.0.0
Ajax configuration for StateRestore.
Please note - this property requires the StateRestore extension for DataTables.
Description
TODO
Types
string
As a string, this option sets the URL that should be used to get and set saved states.
object
As an object, this option will define the Ajax request options that will be used to get and set saved states. Please see DataTable.AjaxOptions for the full details of the properties that this object can take.
Example
Ajax load and save state information:
new DataTable('#myTable', {
layout: {
topStart: {
buttons: ['stateCreate', 'statesList', 'pageLength']
}
},
stateRestore: {
ajax: '/states/myTable'
}
});