Since: StateRestore 1.0.0

Extends savedStates, adding creating functionality to the collection normally displayed.
Please note - this property requires the StateRestore extension for DataTables.


This button extends the savedStates button to include the createState button in the collection that is normally displayed when the savedStates button is pressed.

As well as the createState button, the usual collection that contains a number of stateRestore buttons, one for each state that is being stored by stateRestore, is shown.


This button can have the following options set in its configuration object to customise its actions and display, in addition to those options which are available for all buttons (e.g. buttons.buttons.text):


savedStatesCreate button modify text:

$.fn.dataTable.ext.buttons.savedStatesCreate.text = function (e, dt, node, config) {
    return "Saved states collection";