{hero}

language.stateRestore.creationModal.title

Since: StateRestore 1.0.0

Set the text for the title of the creation modal.
Please note - this property requires the StateRestore extension for DataTables.

Description

This string is displayed as the heading within the creation modal that is shown when a state is being created.

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

Type

string

The string that will be displayed within the title of the creation modal when enabled within stateRestore.creationModal.

Default

  • Value: Create New State

Example

Change text of the search checkbox label:

new DataTable('#myTable', {
	language: {
		stateRestore: {
			creationModal: {
				title: 'New State:'
			}
		}
	},
	layout: {
		topStart: {
			buttons: [
				{
					extend: 'createState',
					config: {
						creationModal: true
					}
				},
				'savedStates'
			]
		}
	}
});

Related

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