language.stateRestore.creationModal.button
Since: StateRestore 1.0.0
Set the text within the StateRestore creation modal button.
Please note - this property requires the StateRestore extension for DataTables.
Description
This string is displayed in the confirmation button within the creation modal that is shown when a state is being created.
The value set here is passed through the i18n()
function.
Type
string
The string that will be displayed within the button that is shown in the creation modal.
Default
- Value:
Create
Example
Change text within creation confirmation button:
new DataTable('#myTable', {
language: {
stateRestore: {
creationModal: {
button: 'Create a new state'
}
}
},
layout: {
topStart: {
buttons: [
{
extend: 'createState',
config: {
creationModal: true
}
},
'savedStates'
]
}
}
});
Related
The following options are directly related and may also be useful in your application development.