{hero}

language.stateRestore.creationModal.toggleLabel

Since: StateRestore 1.0.0

Set the label text shown beside the toggle check boxes.
Please note - this property requires the StateRestore extension for DataTables.

Description

This string is displayed as a label within the creation modal next to the toggle check boxes. These check boxes allow the user to set what is saved by that state. They are configured using the toggle option of stateRestoreConfig.

Type

string

Description:

The string that will be displayed as a label next to the toggle check boxes within the creation modal.

Default

  • Value: Includes:

Example

Change rename modal title:

new DataTable('#myTable', {
	language: {
		stateRestore: {
			creationModal: {
				toggleLabel: 'Toggles'
			}
		}
	},
	layout: {
		topStart: {
			buttons: [
				{
					extend: 'createState',
					config: {
						creationModal: true,
						toggle: {
							search: true
						}
					}
				},
				'savedStates'
			]
		}
	}
});

Related

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