{hero}

language.stateRestore.creationModal.name

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.

Description

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.

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

Type

string

Description:

The string that will be displayed within the label next to the input for the new states name that is shown in the creation modal when enabled within stateRestore.creationModal.

Default

  • Value: Name:

Example

Change text of the name input label:

$(document).ready(function() {
    $('#example').DataTable( {
        language: {
            stateRestore: {
                creationModal:{
                    name: 'State Name:'
                }
            }
        },
        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.