language.stateRestore.creationModal.name
Set the text for the label of the name input within the creation modal.
Please note - this property requires the StateRestore extension for DataTables.
Description
This string is displayed in the label next to the input that allows a custom name to be set in the creation modal that is shown when creating a new state using StateRestore with the creationModal
option of stateRestoreConfig
.
The value set here is passed through the i18n()
function.
Type
This option can be given in the following type(s):
Default
- Value:
Name:
Example
Change text of the name input label:
new DataTable('#myTable', {
language: {
stateRestore: {
creationModal: {
name: 'State Name:'
}
}
},
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.