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


As of v1.1.1 this feature has been deprecated. This feature has not yet been scheduled for removal, but its use is discouraged and the alternatives discussed below should be used.


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 is deprecated as of version 1.1.1 and will be removed in a future release. It is now favoured to use the buttons buttons.buttons initialisation option to add the other buttons to the start of the collection.


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:

DataTable.ext.buttons.savedStatesCreate.text = function (e, dt, node, config) {
	return 'Saved states collection';