{hero}

language.stateRestore.removeError

Since: StateRestore 1.0.0

Set the error message shown when incorrectly removing a state.
Please note - this property requires the StateRestore extension for DataTables.

Description

This string is displayed within the remove modal to indicate an error has occured when removing the state.

Type

string

Description:

The string that will be displayed within the remove modal when an error occurs.

Default

  • Value: Failed to remove state.

Example

Change text within remove confirmation modal:

$(document).ready(function() {
    $('#example').DataTable( {
        language: {
            stateRestore: {
                removeError: 'ERROR!'
            }
        },
        buttons: [ 'createState', 'savedStates' ],
        dom: 'Bfrtip'
    });
});

Related

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