mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Set LanuageSettings to optional
Language info fields marked as optional to allow constructs as
var table = $('#example').DataTable({
processing: true,
serverSide: true,
pagingType: "full_numbers",
lengthMenu: [5, 10, 15],
language: {
paginate: {
first: "Fsairst",
last: "Laasst",
next: "Nexast",
previous: "Preavious"
}
},
This commit is contained in:
+14
-13
@@ -1617,20 +1617,21 @@ declare module DataTables {
|
||||
|
||||
//#region "language-settings"
|
||||
|
||||
// these are all optional
|
||||
interface LanguageSettings {
|
||||
emptyTable: string;
|
||||
info: string;
|
||||
infoEmpty: string;
|
||||
infoFiltered: string;
|
||||
infoPostFix: string;
|
||||
thousands: string;
|
||||
lengthMenu: string;
|
||||
loadingRecords: string;
|
||||
processing: string;
|
||||
search: string;
|
||||
zeroRecords: string;
|
||||
paginate: LanguagePaginateSettings;
|
||||
aria: LanguageAriaSettings;
|
||||
emptyTable?: string;
|
||||
info?: string;
|
||||
infoEmpty?: string;
|
||||
infoFiltered?: string;
|
||||
infoPostFix?: string;
|
||||
thousands?: string;
|
||||
lengthMenu?: string;
|
||||
loadingRecords?: string;
|
||||
processing?: string;
|
||||
search?: string;
|
||||
zeroRecords?: string;
|
||||
paginate?: LanguagePaginateSettings;
|
||||
aria?: LanguageAriaSettings;
|
||||
}
|
||||
|
||||
interface LanguagePaginateSettings {
|
||||
|
||||
Reference in New Issue
Block a user