{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

Description:

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:

$(document).ready(function() {
    $('#example').DataTable( {
        language: {
            stateRestore: {
                creationModal:{
                    title: 'New State:'
                }
            }
        },
        buttons: [
            {
                extend: 'createState',
                config:{
                    creationModal: true
                }
            }
            'savedStates'
        ],
        dom: 'Bfrtip'
    });
});

Related

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