language.stateRestore.emptyError
Since: StateRestore 1.0.0
Set the error message shown when incorrectly renaming a state to an empty string.
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 they have not inputted a valid name for the state, because the value is an empty string.
Type
string
The string that will be displayed within the rename modal when an invalid name is provided.
Default
- Value:
Name cannot be empty.
Example
Change text within remove confirmation modal:
new DataTable('#myTable', {
language: {
stateRestore: {
emptyError: 'ERROR!'
}
},
layout: {
topStart: {
buttons: ['createState', 'savedStates']
}
}
});
Related
The following options are directly related and may also be useful in your application development.