language.stateRestore.duplicateError
Since: StateRestore 1.0.0
Set the error message shown when attempting to rename a state to one that already exists.
Please note - this property requires the StateRestore extension for DataTables.
Description
This string is displayed within the rename modal to indicate to the user that a state with this name already exists and they should choose another.
Type
string
- Description:
The string that will be displayed within the rename modal when a duplicate name is provided.
Default
- Value:
A state with this name already exists.
Example
Change text within remove confirmation modal:
$(document).ready(function() {
$('#example').DataTable( {
language: {
stateRestore: {
duplicateError: 'ERROR! Name already in use!'
}
},
buttons: [ 'createState', 'savedStates' ],
dom: 'Bfrtip'
});
});
Related
The following options are directly related and may also be useful in your application development.