i18n.datetime
Since: Editor 1.5.2
Date time field input language options.
Please note - this property requires the Editor extension for DataTables.
Description
This option is a namespace for the language strings that Editor uses as part of the datetime field type that Editor provides, showing a simple calendar and time input widget to the end user.
Type
This option can be given in the following type(s):
Example
Use French language strings for the datetime widget:
var editor = new DataTable.Editor({
ajax: 'api/staff',
table: '#myTable',
i18n: {
datetime: {
previous: 'Précédent',
next: 'Premier',
months: [
'Janvier',
'Février',
'Mars',
'Avril',
'Mai',
'Juin',
'Juillet',
'Août',
'Septembre',
'Octobre',
'Novembre',
'Décembre'
],
weekdays: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam']
}
}
});Related
The following options are directly related and may also be useful in your application development.