{hero}

language.buttons.stateRestore

Since: StateRestore 1.0.0

Set the text within the StateRestore stateRestore split dropdown button.
Please note - this property requires the StateRestore extension for DataTables.

Description

This string is displayed in StateRestore's stateRestore button. The button is fully documented at renameState.

Here the %d token in the string is replaced by the number of states that have been created including this one. This allows for the default name of states to change actively as more are created.

The value set here is passed through the i18n() function.

Type

string

Description:

The string that will be displayed within StateRestore's stateRestore split dropdown button.

Default

  • Value: State %d

Example

Change text within the savedStates button:

new DataTable('#myTable', {
	language: {
		buttons: {
			stateRestore: 'State Number %d'
		}
	},
	layout: {
		topStart: {
			buttons: ['createState', 'savedStates']
		}
	}
});

Related

The following options are directly related and may also be useful in your application development.