{hero}

language.buttons.createState

Since: StateRestore 1.0.0

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

Description

This string is displayed in StateRestore's creation button. The button is fully documented at createState.

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

Type

string

Description:

The string that will be displayed within StateRestore's creation button.

Default

  • Value: Create State

Example

Change text within creation button:

new DataTable('#myTable', {
	language: {
		buttons: {
			createState: 'Create a new state'
		}
	},
	layout: {
		topStart: {
			buttons: ['createState', 'savedStates']
		}
	}
});

Related

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