Since: StateRestore 1.0.0

Set the text for the label of the name input within the creation modal.
Please note - this property requires the StateRestore extension for DataTables.


This string is displayed in the label next to the input that allows a custom name to be set in the creation modal that is shown when creating a new state using StateRestore with the creationModal option of stateRestoreConfig.

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


This option can be given in the following type(s):


  • Value: Name:


Change text of the name input label:

new DataTable('#myTable', {
	language: {
		stateRestore: {
			creationModal: {
				name: 'State Name:'
	layout: {
		topStart: {
			buttons: [
					extend: 'createState',
					config: {
						creationModal: true


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