{hero}

language.stateRestore.emptyStates

Since: StateRestore 1.0.0

Set the text that is shown in the savedStates collection when there are no saved states.
Please note - this property requires the StateRestore extension for DataTables.

Description

This string will be displayed within the savedStates collection when no saves have been loaded or created.

Type

string

The string that will be displayed within the savedStates collection when no saves have been loaded or created.

Default

  • Value: No saved states

Example

Change text within collection when there are no saved states:

new DataTable('#myTable', {
	language: {
		stateRestore: {
			emptyStates: 'No States'
		}
	},
	layout: {
		topStart: {
			buttons: ['createState', 'savedStates']
		}
	}
});

Related

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