language.stateRestore.creationModal.toggleLabel
Set the label text shown beside the toggle check boxes.
Please note - this property requires the StateRestore extension for DataTables.
Description
This string is displayed as a label within the creation modal next to the toggle check boxes. These check boxes allow the user to set what is saved by that state. They are configured using stateRestore.toggle
.
Type
string
- Description:
The string that will be displayed as a label next to the toggle check boxes within the creation modal.
Default
- Value:
Includes:
Example
Change rename modal title:
$(document).ready(function() {
$('#example').DataTable( {
language: {
stateRestore: {
creationModal: {
toggleLabel: 'Toggles'
}
}
},
buttons: [
{
extend: 'createState',
config:{
creationModal: true,
toggle: {
search: true
}
}
}
'savedStates'
],
dom: 'Bfrtip'
});
});
Related
The following options are directly related and may also be useful in your application development.