{hero}

language.stateRestore

Since: StateRestore stateRestore 1.0.0

Container for options for language.
Please note - this property requires the StateRestore extension for DataTables.

Description

As standard, no custom options will be applied to the StateRestore language options if language.stateRestore is undefined. Otherwise the related options will be applied if they are defined within this object.

This is useful as it means that the language options can be set for StateRestore leading to increased internationalisation.

Type

object

Description:

This option is capable of holding all of the sub-options for languages for stateRestore.

Default

  • Value: undefined

The default value for the language.stateRestore object is undefined. Meaning that as standard there are no extra options to add to the panes for language.

Example

Alter language options: :

new DataTable('#myTable', {
	language: {
		stateRestore: {
			removeSubmit: 'Remove',
			removeConfirm: 'Confirm state removal.',
			emptyStates: 'No states',
			renameButton: 'Change Name',
			renameLabel: 'New value:'
		}
	},
	layout: {
		topStart: {
			buttons: ['createState', 'savedStates']
		}
	}
});

Related

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