language.stateRestore.emptyStates
Since: StateRestore 1.0.0
Set the text that is shown in the savedStates collection when there are no saved states.
Please note - this property requires the StateRestore extension for DataTables.
Description
This string will be displayed within the savedStates collection when no saves have been loaded or created.
Type
string
- Description:
The string that will be displayed within the savedStates collection when no saves have been loaded or created.
Default
- Value:
No saved states
Example
Change text within collection when there are no saved states:
$(document).ready(function() {
$('#example').DataTable( {
language: {
stateRestore: {
emptyStates: 'No States'
}
},
buttons: [ 'createState', 'savedStates' ],
dom: 'Bfrtip'
});
});
Related
The following options are directly related and may also be useful in your application development.