datatables.net 3.0.0-beta.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/js/dataTables.js +519 -96
- package/js/dataTables.min.js +2 -2
- package/js/dataTables.min.mjs +2 -2
- package/js/dataTables.mjs +519 -96
- package/package.json +3 -2
- package/types/types.d.ts +245 -228
package/types/types.d.ts
CHANGED
|
@@ -657,6 +657,15 @@ declare class Dom<T extends HTMLElement = HTMLElement> implements ArrayLike<T> {
|
|
|
657
657
|
* grid or flex before being hidden.
|
|
658
658
|
*/
|
|
659
659
|
show(): this;
|
|
660
|
+
/**
|
|
661
|
+
* Sort the DOM elements into document order.
|
|
662
|
+
*
|
|
663
|
+
* This is normally not needed as elements selected with a DOM selector are
|
|
664
|
+
* automatically sorted in document order. However, in the case of elements
|
|
665
|
+
* being added as an array, their order will be retained. In such as case
|
|
666
|
+
* you might wish to sort them in document order.
|
|
667
|
+
*/
|
|
668
|
+
sort(): this;
|
|
660
669
|
/**
|
|
661
670
|
* Get the text content for the first item in the result set
|
|
662
671
|
*
|
|
@@ -1170,9 +1179,9 @@ interface StateLoad {
|
|
|
1170
1179
|
time?: number;
|
|
1171
1180
|
}
|
|
1172
1181
|
|
|
1173
|
-
type DeepPartial<T> = {
|
|
1174
|
-
[
|
|
1175
|
-
};
|
|
1182
|
+
type DeepPartial<T> = T extends (...args: any[]) => any ? T : T extends (infer U)[] ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends object ? {
|
|
1183
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
1184
|
+
} : T;
|
|
1176
1185
|
/**
|
|
1177
1186
|
* Execution scope for the callbacks
|
|
1178
1187
|
*/
|
|
@@ -1180,7 +1189,7 @@ interface DataTableDom extends Dom<HTMLTableElement> {
|
|
|
1180
1189
|
/**
|
|
1181
1190
|
* Get a DataTable API instance for the table
|
|
1182
1191
|
*/
|
|
1183
|
-
api(): Api
|
|
1192
|
+
api(): Api;
|
|
1184
1193
|
}
|
|
1185
1194
|
interface Feature {
|
|
1186
1195
|
/** A simple `<div>` that can contain your own content */
|
|
@@ -1321,7 +1330,7 @@ interface ConfigRenderer {
|
|
|
1321
1330
|
pageButton?: string;
|
|
1322
1331
|
}
|
|
1323
1332
|
type FunctionCreateRow = (this: DataTableDom, row: HTMLTableRowElement, data: any[] | object, dataIndex: number, cells: HTMLTableCellElement[]) => void;
|
|
1324
|
-
type FunctionDrawCallback
|
|
1333
|
+
type FunctionDrawCallback = (this: DataTableDom, settings: Context) => void;
|
|
1325
1334
|
type FunctionFooterCallback = (this: DataTableDom, tr: HTMLTableRowElement, data: any[], start: number, end: number, display: any[]) => void;
|
|
1326
1335
|
type FunctionFormatNumber = (formatNumber: number, ctx: Context) => string;
|
|
1327
1336
|
type FunctionHeaderCallback = (this: DataTableDom, tr: HTMLTableRowElement, data: any[], start: number, end: number, display: any[]) => void;
|
|
@@ -1496,7 +1505,7 @@ interface Defaults {
|
|
|
1496
1505
|
*
|
|
1497
1506
|
* @deprecated Use `on.draw` or `draw` event
|
|
1498
1507
|
*/
|
|
1499
|
-
drawCallback: FunctionDrawCallback
|
|
1508
|
+
drawCallback: FunctionDrawCallback | null;
|
|
1500
1509
|
/**
|
|
1501
1510
|
* Footer display callback function.
|
|
1502
1511
|
*/
|
|
@@ -1939,7 +1948,6 @@ interface TableRowElement extends HTMLTableRowElement {
|
|
|
1939
1948
|
*/
|
|
1940
1949
|
declare function create$1(parts?: Partial<Row>): Row;
|
|
1941
1950
|
|
|
1942
|
-
type FunctionDrawCallback = (this: DataTableDom, settings: Context) => void;
|
|
1943
1951
|
interface IScroll {
|
|
1944
1952
|
/**
|
|
1945
1953
|
* When the table is shorter in height than sScrollY, collapse the
|
|
@@ -2905,7 +2913,9 @@ declare const reHtml: RegExp;
|
|
|
2905
2913
|
declare const reRegexCharacters: RegExp;
|
|
2906
2914
|
declare const reDate: RegExp;
|
|
2907
2915
|
declare const reNewLines: RegExp;
|
|
2916
|
+
declare const isoTimezone: RegExp;
|
|
2908
2917
|
|
|
2918
|
+
declare const regex_isoTimezone: typeof isoTimezone;
|
|
2909
2919
|
declare const regex_reDate: typeof reDate;
|
|
2910
2920
|
declare const regex_reFormattedNumeric: typeof reFormattedNumeric;
|
|
2911
2921
|
declare const regex_reHtml: typeof reHtml;
|
|
@@ -2913,6 +2923,7 @@ declare const regex_reNewLines: typeof reNewLines;
|
|
|
2913
2923
|
declare const regex_reRegexCharacters: typeof reRegexCharacters;
|
|
2914
2924
|
declare namespace regex {
|
|
2915
2925
|
export {
|
|
2926
|
+
regex_isoTimezone as isoTimezone,
|
|
2916
2927
|
regex_reDate as reDate,
|
|
2917
2928
|
regex_reFormattedNumeric as reFormattedNumeric,
|
|
2918
2929
|
regex_reHtml as reHtml,
|
|
@@ -3080,15 +3091,15 @@ declare const _default: {
|
|
|
3080
3091
|
* @param jq jQuery
|
|
3081
3092
|
* @returns Indicator
|
|
3082
3093
|
*/
|
|
3083
|
-
declare function factory(root: Window & typeof globalThis, jq:
|
|
3094
|
+
declare function factory(root: Window & typeof globalThis, jq: any): boolean;
|
|
3084
3095
|
|
|
3085
3096
|
type Unpacked<T> = T extends (infer U)[] ? U : T extends (...args: any[]) => infer U ? U : T extends Promise<infer U> ? U : T;
|
|
3086
3097
|
type DomSelector = string | Node | HTMLElement | JQuery | Dom;
|
|
3087
|
-
type InstSelector = DomSelector | Context | Api
|
|
3098
|
+
type InstSelector = DomSelector | Context | Api | InstSelector[];
|
|
3088
3099
|
type RowIdx = number;
|
|
3089
|
-
type RowSelector<T> = RowIdx | string | Node | Dom | JQuery | ((idx: RowIdx, data: T, node: Node | null) => boolean) | RowSelector<T>[] | Api
|
|
3100
|
+
type RowSelector<T> = RowIdx | string | Node | Dom | JQuery | ((idx: RowIdx, data: T, node: Node | null) => boolean) | RowSelector<T>[] | Api<number> | null;
|
|
3090
3101
|
type ColumnIdx = number;
|
|
3091
|
-
type ColumnSelector = ColumnIdx | string | Node | JQuery | ((idx: ColumnIdx, data: any, node: Node) => boolean) | ColumnSelector[] | Api
|
|
3102
|
+
type ColumnSelector = ColumnIdx | string | Node | JQuery | ((idx: ColumnIdx, data: any, node: Node) => boolean) | ColumnSelector[] | Api<number> | null;
|
|
3092
3103
|
type CellIdx = {
|
|
3093
3104
|
row: number;
|
|
3094
3105
|
column: number;
|
|
@@ -3107,14 +3118,14 @@ type HeaderStructure = {
|
|
|
3107
3118
|
title: string;
|
|
3108
3119
|
};
|
|
3109
3120
|
interface ApiConstructor {
|
|
3110
|
-
new (content: InstSelector, data?: any): Api
|
|
3111
|
-
(content: InstSelector, data?: any): Api
|
|
3121
|
+
new (content: InstSelector, data?: any): Api;
|
|
3122
|
+
(content: InstSelector, data?: any): Api;
|
|
3112
3123
|
register<T extends Function = Function>(name: string | string[], fn: T): void;
|
|
3113
3124
|
registerPlural<T extends Function = any>(pluralName: string, singleName: string, fn: T): void;
|
|
3114
3125
|
}
|
|
3115
|
-
interface Api
|
|
3126
|
+
interface Api<T = any> extends ApiScopeable<T, Api> {
|
|
3116
3127
|
}
|
|
3117
|
-
declare const Api
|
|
3128
|
+
declare const Api: ApiConstructor;
|
|
3118
3129
|
interface ApiScopeable<T, S> {
|
|
3119
3130
|
/**
|
|
3120
3131
|
* @internal
|
|
@@ -3164,7 +3175,7 @@ interface ApiScopeable<T, S> {
|
|
|
3164
3175
|
*
|
|
3165
3176
|
* @returns DataTables Api instance.
|
|
3166
3177
|
*/
|
|
3167
|
-
clear(this: S): Api
|
|
3178
|
+
clear(this: S): Api<T>;
|
|
3168
3179
|
/**
|
|
3169
3180
|
* Column Methods / object
|
|
3170
3181
|
*/
|
|
@@ -3182,7 +3193,7 @@ interface ApiScopeable<T, S> {
|
|
|
3182
3193
|
* @returns New API instance with the values from all passed in instances
|
|
3183
3194
|
* concatenated into its result set.
|
|
3184
3195
|
*/
|
|
3185
|
-
concat(a: object, ...b: object[]): Api
|
|
3196
|
+
concat(a: object, ...b: object[]): Api<any>;
|
|
3186
3197
|
/**
|
|
3187
3198
|
* The table setting objects that are manipulated by this API instance
|
|
3188
3199
|
*
|
|
@@ -3202,7 +3213,7 @@ interface ApiScopeable<T, S> {
|
|
|
3202
3213
|
* @returns DataTables Api instance with the data for each row in the result
|
|
3203
3214
|
* set
|
|
3204
3215
|
*/
|
|
3205
|
-
data(this: S): Api
|
|
3216
|
+
data(this: S): Api<T>;
|
|
3206
3217
|
/**
|
|
3207
3218
|
* Destroy the DataTables in the current context.
|
|
3208
3219
|
*
|
|
@@ -3210,7 +3221,7 @@ interface ApiScopeable<T, S> {
|
|
|
3210
3221
|
* in the DOM in its original plain un-enhanced HTML state (default, false).
|
|
3211
3222
|
* @returns DataTables Api instance
|
|
3212
3223
|
*/
|
|
3213
|
-
destroy(this: S, remove?: boolean): Api
|
|
3224
|
+
destroy(this: S, remove?: boolean): Api<T>;
|
|
3214
3225
|
/**
|
|
3215
3226
|
* Redraw the DataTables in the current context, optionally updating
|
|
3216
3227
|
* ordering, searching and paging as required.
|
|
@@ -3219,7 +3230,7 @@ interface ApiScopeable<T, S> {
|
|
|
3219
3230
|
* DataTables will perform.
|
|
3220
3231
|
* @returns DataTables Api instance
|
|
3221
3232
|
*/
|
|
3222
|
-
draw(this: S, paging?: boolean | string): Api
|
|
3233
|
+
draw(this: S, paging?: boolean | string): Api<T>;
|
|
3223
3234
|
/**
|
|
3224
3235
|
* Iterate over the contents of the API result set.
|
|
3225
3236
|
*
|
|
@@ -3227,7 +3238,7 @@ interface ApiScopeable<T, S> {
|
|
|
3227
3238
|
* instance result set. The callback is called with three parameters
|
|
3228
3239
|
* @returns Original API instance that was used. For chaining.
|
|
3229
3240
|
*/
|
|
3230
|
-
each(fn: (value: T, index: number, dt: Api
|
|
3241
|
+
each(fn: (value: T, index: number, dt: Api<T>) => void): Api<T>;
|
|
3231
3242
|
/**
|
|
3232
3243
|
* Reduce an Api instance to a single context and result set.
|
|
3233
3244
|
*
|
|
@@ -3236,14 +3247,14 @@ interface ApiScopeable<T, S> {
|
|
|
3236
3247
|
* containing the table and data for the index specified, or null if no
|
|
3237
3248
|
* matching index was available.
|
|
3238
3249
|
*/
|
|
3239
|
-
eq(this: S, idx: number): Api
|
|
3250
|
+
eq(this: S, idx: number): Api<T>;
|
|
3240
3251
|
/**
|
|
3241
3252
|
* Show an error message to the end user / developer through the DataTables
|
|
3242
3253
|
* logging settings.
|
|
3243
3254
|
*
|
|
3244
3255
|
* @param msg Error message to show
|
|
3245
3256
|
*/
|
|
3246
|
-
error(this: S, msg: string): Api
|
|
3257
|
+
error(this: S, msg: string): Api<T>;
|
|
3247
3258
|
/**
|
|
3248
3259
|
* Iterate over the result set of an API instance and test each item,
|
|
3249
3260
|
* creating a new instance from those items which pass.
|
|
@@ -3253,13 +3264,13 @@ interface ApiScopeable<T, S> {
|
|
|
3253
3264
|
* @returns New API instance with the values from the result set which
|
|
3254
3265
|
* passed the test in the callback.
|
|
3255
3266
|
*/
|
|
3256
|
-
filter(fn: (value: any, index: number, dt: Api
|
|
3267
|
+
filter(fn: (value: any, index: number, dt: Api<any>) => boolean): Api<T>;
|
|
3257
3268
|
/**
|
|
3258
3269
|
* Flatten a 2D array structured API instance to a 1D array structure.
|
|
3259
3270
|
*
|
|
3260
3271
|
* @returns New API instance with the 2D array values reduced to a 1D array.
|
|
3261
3272
|
*/
|
|
3262
|
-
flatten(): Api
|
|
3273
|
+
flatten(): Api<Unpacked<T>>;
|
|
3263
3274
|
/**
|
|
3264
3275
|
* Get the underlying data from a DataTable instance.
|
|
3265
3276
|
*
|
|
@@ -3320,7 +3331,7 @@ interface ApiScopeable<T, S> {
|
|
|
3320
3331
|
* @param data Data for the instance to hold
|
|
3321
3332
|
* @param newClass Override class target - internal.
|
|
3322
3333
|
*/
|
|
3323
|
-
inst<R = Api
|
|
3334
|
+
inst<R = Api>(context: InstSelector, data?: T | null, newClass?: string): R;
|
|
3324
3335
|
/**
|
|
3325
3336
|
* Iterate over a result set of table, row, column or cell indexes
|
|
3326
3337
|
*
|
|
@@ -3338,14 +3349,14 @@ interface ApiScopeable<T, S> {
|
|
|
3338
3349
|
* undefined) or a new API instance with the result set being the results
|
|
3339
3350
|
* from the callback, in order of execution.
|
|
3340
3351
|
*/
|
|
3341
|
-
iterator<R extends Api
|
|
3342
|
-
iterator<R extends Api
|
|
3343
|
-
iterator<R extends Api
|
|
3344
|
-
iterator<R extends Api
|
|
3345
|
-
iterator<R extends Api
|
|
3346
|
-
iterator<R extends Api
|
|
3347
|
-
iterator<R extends Api
|
|
3348
|
-
iterator<R extends Api
|
|
3352
|
+
iterator<R extends Api = Api<any>>(type: 'table', callback: IteratorTable, returns?: boolean): R;
|
|
3353
|
+
iterator<R extends Api = Api<any>>(type: 'cell', callback: IteratorCell, returns?: boolean): R;
|
|
3354
|
+
iterator<R extends Api = Api<any>>(type: 'column-rows', callback: IteratorColumnRows, returns?: boolean): R;
|
|
3355
|
+
iterator<R extends Api = Api<any>>(type: 'column', callback: IteratorColumn, returns?: boolean): R;
|
|
3356
|
+
iterator<R extends Api = Api<any>>(type: 'columns', callback: IteratorColumns, returns?: boolean): R;
|
|
3357
|
+
iterator<R extends Api = Api<any>>(type: 'row', callback: IteratorRow, returns?: boolean): R;
|
|
3358
|
+
iterator<R extends Api = Api<any>>(type: 'rows', callback: IteratorRows, returns?: boolean): R;
|
|
3359
|
+
iterator<R extends Api = Api<any>>(type: 'every', callback: IteratorEvery, returns?: boolean): R;
|
|
3349
3360
|
/**
|
|
3350
3361
|
* Iterate over a result set of table, row, column or cell indexes
|
|
3351
3362
|
*
|
|
@@ -3368,13 +3379,13 @@ interface ApiScopeable<T, S> {
|
|
|
3368
3379
|
* undefined) or a new API instance with the result set being the results
|
|
3369
3380
|
* from the callback, in order of execution.
|
|
3370
3381
|
*/
|
|
3371
|
-
iterator<R extends Api
|
|
3372
|
-
iterator<R extends Api
|
|
3373
|
-
iterator<R extends Api
|
|
3374
|
-
iterator<R extends Api
|
|
3375
|
-
iterator<R extends Api
|
|
3376
|
-
iterator<R extends Api
|
|
3377
|
-
iterator<R extends Api
|
|
3382
|
+
iterator<R extends Api = Api<any>>(flatten: boolean, type: 'table', callback: IteratorTable, returns?: boolean): R;
|
|
3383
|
+
iterator<R extends Api = Api<any>>(flatten: boolean, type: 'cell', callback: IteratorCell, returns?: boolean): R;
|
|
3384
|
+
iterator<R extends Api = Api<any>>(flatten: boolean, type: 'column-rows', callback: IteratorColumnRows, returns?: boolean): R;
|
|
3385
|
+
iterator<R extends Api = Api<any>>(flatten: boolean, type: 'column', callback: IteratorColumn, returns?: boolean): R;
|
|
3386
|
+
iterator<R extends Api = Api<any>>(flatten: boolean, type: 'columns', callback: IteratorColumns, returns?: boolean): R;
|
|
3387
|
+
iterator<R extends Api = Api<any>>(flatten: boolean, type: 'row', callback: IteratorRow, returns?: boolean): R;
|
|
3388
|
+
iterator<R extends Api = Api<any>>(flatten: boolean, type: 'rows', callback: IteratorRows, returns?: boolean): R;
|
|
3378
3389
|
/**
|
|
3379
3390
|
* Join the elements in the result set into a string.
|
|
3380
3391
|
*
|
|
@@ -3404,7 +3415,7 @@ interface ApiScopeable<T, S> {
|
|
|
3404
3415
|
* @returns New API instance with the values in the result set as those
|
|
3405
3416
|
* returned by the callback.
|
|
3406
3417
|
*/
|
|
3407
|
-
map(fn: (value: any, index: number, dt: Api
|
|
3418
|
+
map(fn: (value: any, index: number, dt: Api<any>) => any): Api<any>;
|
|
3408
3419
|
/**
|
|
3409
3420
|
* Remove event listeners that have previously been added with on().
|
|
3410
3421
|
*
|
|
@@ -3413,7 +3424,7 @@ interface ApiScopeable<T, S> {
|
|
|
3413
3424
|
* unbind a single event listener.
|
|
3414
3425
|
* @returns DataTables Api instance
|
|
3415
3426
|
*/
|
|
3416
|
-
off(event: string, callback?: (this: HTMLElement, e: Event, ...args: any[]) => void): Api
|
|
3427
|
+
off(event: string, callback?: (this: HTMLElement, e: Event, ...args: any[]) => void): Api<T>;
|
|
3417
3428
|
/**
|
|
3418
3429
|
* Remove event handlers from selected elements
|
|
3419
3430
|
*
|
|
@@ -3423,7 +3434,7 @@ interface ApiScopeable<T, S> {
|
|
|
3423
3434
|
* unbind a single event listener.
|
|
3424
3435
|
* @returns DataTables Api instance
|
|
3425
3436
|
*/
|
|
3426
|
-
off(event: string, selector: string, callback?: (this: HTMLElement, e: Event, ...args: any[]) => void): Api
|
|
3437
|
+
off(event: string, selector: string, callback?: (this: HTMLElement, e: Event, ...args: any[]) => void): Api<T>;
|
|
3427
3438
|
/**
|
|
3428
3439
|
* Table events listener.
|
|
3429
3440
|
*
|
|
@@ -3431,7 +3442,7 @@ interface ApiScopeable<T, S> {
|
|
|
3431
3442
|
* @param callback Event handler.
|
|
3432
3443
|
* @returns DataTables Api instance
|
|
3433
3444
|
*/
|
|
3434
|
-
on(event: string, callback: (this: HTMLElement, e: Event, ...args: any[]) => void): Api
|
|
3445
|
+
on(event: string, callback: (this: HTMLElement, e: Event, ...args: any[]) => void): Api<T>;
|
|
3435
3446
|
/**
|
|
3436
3447
|
* Listen for events from selected elements
|
|
3437
3448
|
*
|
|
@@ -3440,7 +3451,7 @@ interface ApiScopeable<T, S> {
|
|
|
3440
3451
|
* @param callback Event handler.
|
|
3441
3452
|
* @returns DataTables Api instance
|
|
3442
3453
|
*/
|
|
3443
|
-
on(event: string, selector: string, callback: (this: HTMLElement, e: Event, ...args: any[]) => void): Api
|
|
3454
|
+
on(event: string, selector: string, callback: (this: HTMLElement, e: Event, ...args: any[]) => void): Api<T>;
|
|
3444
3455
|
/**
|
|
3445
3456
|
* Listen for a table event once and then remove the listener.
|
|
3446
3457
|
*
|
|
@@ -3449,7 +3460,7 @@ interface ApiScopeable<T, S> {
|
|
|
3449
3460
|
* Listen for events from tables and fire a callback when they occur
|
|
3450
3461
|
* @returns DataTables Api instance
|
|
3451
3462
|
*/
|
|
3452
|
-
one(event: string, callback: (this: HTMLElement, e: Event, ...args: any[]) => void): Api
|
|
3463
|
+
one(event: string, callback: (this: HTMLElement, e: Event, ...args: any[]) => void): Api<T>;
|
|
3453
3464
|
/**
|
|
3454
3465
|
* Listen for events from a selected element and trigger only once then
|
|
3455
3466
|
* remove the listener.
|
|
@@ -3459,7 +3470,7 @@ interface ApiScopeable<T, S> {
|
|
|
3459
3470
|
* @param callback Event handler.
|
|
3460
3471
|
* @returns DataTables Api instance
|
|
3461
3472
|
*/
|
|
3462
|
-
one(event: string, selector: string, callback: (this: HTMLElement, e: Event, ...args: any[]) => void): Api
|
|
3473
|
+
one(event: string, selector: string, callback: (this: HTMLElement, e: Event, ...args: any[]) => void): Api<T>;
|
|
3463
3474
|
/**
|
|
3464
3475
|
* Order Methods / object
|
|
3465
3476
|
*/
|
|
@@ -3477,7 +3488,7 @@ interface ApiScopeable<T, S> {
|
|
|
3477
3488
|
* @returns New API instance with the values in the result retrieved from
|
|
3478
3489
|
* the source object properties defined by the property being plucked.
|
|
3479
3490
|
*/
|
|
3480
|
-
pluck(property: number | string): Api
|
|
3491
|
+
pluck(property: number | string): Api<any>;
|
|
3481
3492
|
/**
|
|
3482
3493
|
* Remove the last item from an API instance's result set.
|
|
3483
3494
|
*
|
|
@@ -3490,7 +3501,7 @@ interface ApiScopeable<T, S> {
|
|
|
3490
3501
|
*
|
|
3491
3502
|
* @param show Flag to indicate if it should show or not
|
|
3492
3503
|
*/
|
|
3493
|
-
processing(this: S, show: boolean): Api
|
|
3504
|
+
processing(this: S, show: boolean): Api<any>;
|
|
3494
3505
|
/**
|
|
3495
3506
|
* Add one or more items to the end of an API instance's result set.
|
|
3496
3507
|
*
|
|
@@ -3508,7 +3519,7 @@ interface ApiScopeable<T, S> {
|
|
|
3508
3519
|
*
|
|
3509
3520
|
* @param fn Function to execute
|
|
3510
3521
|
*/
|
|
3511
|
-
ready(this: S, fn: (this: Api
|
|
3522
|
+
ready(this: S, fn: (this: Api<T>) => void): Api<T>;
|
|
3512
3523
|
/**
|
|
3513
3524
|
* Apply a callback function against and accumulator and each element in the
|
|
3514
3525
|
* Api's result set (left-to-right).
|
|
@@ -3519,9 +3530,9 @@ interface ApiScopeable<T, S> {
|
|
|
3519
3530
|
* to the fn callback.
|
|
3520
3531
|
* @returns Result from the final call to the fn callback function.
|
|
3521
3532
|
*/
|
|
3522
|
-
reduce(fn: (current: T, value: T, index: number, dt: Api
|
|
3523
|
-
reduce(fn: (current: T, value: T, index: number, dt: Api
|
|
3524
|
-
reduce<U>(fn: (current: U, value: T, index: number, dt: Api
|
|
3533
|
+
reduce(fn: (current: T, value: T, index: number, dt: Api<any>) => T): T;
|
|
3534
|
+
reduce(fn: (current: T, value: T, index: number, dt: Api<any>) => T, initialValue: T): T;
|
|
3535
|
+
reduce<U>(fn: (current: U, value: T, index: number, dt: Api<any>) => U, initialValue: U): U;
|
|
3525
3536
|
/**
|
|
3526
3537
|
* Apply a callback function against and accumulator and each element in the
|
|
3527
3538
|
* Api's result set (right-to-left).
|
|
@@ -3532,15 +3543,15 @@ interface ApiScopeable<T, S> {
|
|
|
3532
3543
|
* to the fn callback.
|
|
3533
3544
|
* @returns Result from the final call to the fn callback function.
|
|
3534
3545
|
*/
|
|
3535
|
-
reduceRight(fn: (current: T, value: T, index: number, dt: Api
|
|
3536
|
-
reduceRight(fn: (current: T, value: T, index: number, dt: Api
|
|
3537
|
-
reduceRight<U>(fn: (current: U, value: T, index: number, dt: Api
|
|
3546
|
+
reduceRight(fn: (current: T, value: T, index: number, dt: Api<any>) => T): T;
|
|
3547
|
+
reduceRight(fn: (current: T, value: T, index: number, dt: Api<any>) => T, initialValue: T): T;
|
|
3548
|
+
reduceRight<U>(fn: (current: U, value: T, index: number, dt: Api<any>) => U, initialValue: U): U;
|
|
3538
3549
|
/**
|
|
3539
3550
|
* Reverse the result set of the API instance and return the original array.
|
|
3540
3551
|
*
|
|
3541
3552
|
* @returns The original API instance with the result set in reversed order.
|
|
3542
3553
|
*/
|
|
3543
|
-
reverse(): Api
|
|
3554
|
+
reverse(): Api<T>;
|
|
3544
3555
|
/**
|
|
3545
3556
|
* Row Methods / object
|
|
3546
3557
|
*/
|
|
@@ -3559,7 +3570,7 @@ interface ApiScopeable<T, S> {
|
|
|
3559
3570
|
* @returns DataTables API instance with the settings objects for the tables
|
|
3560
3571
|
* in the context in the result set
|
|
3561
3572
|
*/
|
|
3562
|
-
settings(): Api
|
|
3573
|
+
settings(): Api<Context>;
|
|
3563
3574
|
/**
|
|
3564
3575
|
* @ignore Internal
|
|
3565
3576
|
*/
|
|
@@ -3576,7 +3587,7 @@ interface ApiScopeable<T, S> {
|
|
|
3576
3587
|
*
|
|
3577
3588
|
* @returns DataTables API instance
|
|
3578
3589
|
*/
|
|
3579
|
-
slice(): Api
|
|
3590
|
+
slice(): Api<T>;
|
|
3580
3591
|
/**
|
|
3581
3592
|
* Sort the elements of the API instance's result set.
|
|
3582
3593
|
*
|
|
@@ -3585,7 +3596,7 @@ interface ApiScopeable<T, S> {
|
|
|
3585
3596
|
* @returns The original API instance with the result set sorted as defined
|
|
3586
3597
|
* by the sorting conditions used.
|
|
3587
3598
|
*/
|
|
3588
|
-
sort(fn?: (value1: any, value2: any) => number): Api
|
|
3599
|
+
sort(fn?: (value1: any, value2: any) => number): Api<T>;
|
|
3589
3600
|
/**
|
|
3590
3601
|
* Modify the contents of an Api instance's result set, adding or removing
|
|
3591
3602
|
* items from it as required.
|
|
@@ -3658,7 +3669,7 @@ interface ApiScopeable<T, S> {
|
|
|
3658
3669
|
* @returns Api instance with `defaultPrevented` for each item in the result
|
|
3659
3670
|
* set
|
|
3660
3671
|
*/
|
|
3661
|
-
trigger(this: S, name: string, args?: any[], bubbles?: boolean): Api
|
|
3672
|
+
trigger(this: S, name: string, args?: any[], bubbles?: boolean): Api;
|
|
3662
3673
|
/**
|
|
3663
3674
|
* Create a new API instance containing only the unique items from the
|
|
3664
3675
|
* elements in an instance's result set.
|
|
@@ -3666,7 +3677,7 @@ interface ApiScopeable<T, S> {
|
|
|
3666
3677
|
* @returns New Api instance which contains the unique items from the
|
|
3667
3678
|
* original instance's result set, in its own result set.
|
|
3668
3679
|
*/
|
|
3669
|
-
unique(): Api
|
|
3680
|
+
unique(): Api<any>;
|
|
3670
3681
|
/**
|
|
3671
3682
|
* Add one or more items to the start of an API instance's result set.
|
|
3672
3683
|
*
|
|
@@ -3679,7 +3690,7 @@ interface ApiCaption {
|
|
|
3679
3690
|
/**
|
|
3680
3691
|
* Get the contents of the `caption` element for the table.
|
|
3681
3692
|
*/
|
|
3682
|
-
(this: Api
|
|
3693
|
+
(this: Api): string;
|
|
3683
3694
|
/**
|
|
3684
3695
|
* Set the contents of the `-tag caption` element. If the table doesn't have
|
|
3685
3696
|
* a `-tag caption` element, one will be created automatically.
|
|
@@ -3690,11 +3701,11 @@ interface ApiCaption {
|
|
|
3690
3701
|
* CSS).
|
|
3691
3702
|
* @returns DataTables API instance for chaining.
|
|
3692
3703
|
*/
|
|
3693
|
-
(this: Api
|
|
3704
|
+
(this: Api, set: string, side?: 'top' | 'bottom'): Api;
|
|
3694
3705
|
/**
|
|
3695
3706
|
* Get the HTML caption node for the table
|
|
3696
3707
|
*/
|
|
3697
|
-
node(this: Api
|
|
3708
|
+
node(this: Api): HTMLElement | null;
|
|
3698
3709
|
}
|
|
3699
3710
|
interface ApiSelector<T = any> {
|
|
3700
3711
|
/** Row selector used in this instance (if any) */
|
|
@@ -3747,14 +3758,14 @@ interface SelectorModifier {
|
|
|
3747
3758
|
*/
|
|
3748
3759
|
selected?: boolean;
|
|
3749
3760
|
}
|
|
3750
|
-
interface ApiSearch<T> extends Api
|
|
3761
|
+
interface ApiSearch<T> extends Api<T> {
|
|
3751
3762
|
/**
|
|
3752
3763
|
* Get current search
|
|
3753
3764
|
*
|
|
3754
3765
|
* @returns The currently applied global search. This may be an empty string
|
|
3755
3766
|
* if no search is applied.
|
|
3756
3767
|
*/
|
|
3757
|
-
(this: Api
|
|
3768
|
+
(this: Api): SearchInput<T>;
|
|
3758
3769
|
/**
|
|
3759
3770
|
* Set the global search to use on the table. Note this doesn't actually
|
|
3760
3771
|
* perform the search.
|
|
@@ -3767,7 +3778,7 @@ interface ApiSearch<T> extends Api$1<T> {
|
|
|
3767
3778
|
* (false).
|
|
3768
3779
|
* @returns DataTables API instance
|
|
3769
3780
|
*/
|
|
3770
|
-
(this: Api
|
|
3781
|
+
(this: Api, input: SearchInput<T>, regex?: boolean, smart?: boolean, caseInsen?: boolean): Api<any>;
|
|
3771
3782
|
/**
|
|
3772
3783
|
* Set the global search to use on the table. Note this doesn't actually
|
|
3773
3784
|
* perform the search.
|
|
@@ -3777,20 +3788,20 @@ interface ApiSearch<T> extends Api$1<T> {
|
|
|
3777
3788
|
* performed
|
|
3778
3789
|
* @returns DataTables API instance
|
|
3779
3790
|
*/
|
|
3780
|
-
(this: Api
|
|
3791
|
+
(this: Api, input: SearchInput<T>, options: Partial<SearchOptions>): Api<any>;
|
|
3781
3792
|
/**
|
|
3782
3793
|
* Get a list of the names of searches applied to the table.
|
|
3783
3794
|
*
|
|
3784
3795
|
* @returns API instance containing the fixed search terms
|
|
3785
3796
|
*/
|
|
3786
|
-
fixed(this: Api
|
|
3797
|
+
fixed(this: Api): Api<string>;
|
|
3787
3798
|
/**
|
|
3788
3799
|
* Get the search term used for the given name.
|
|
3789
3800
|
*
|
|
3790
3801
|
* @param name Fixed search term to get.
|
|
3791
3802
|
* @returns The search term for the name given or undefined if not set.
|
|
3792
3803
|
*/
|
|
3793
|
-
fixed(this: Api
|
|
3804
|
+
fixed(this: Api, name: string): SearchInput<T> | undefined;
|
|
3794
3805
|
/**
|
|
3795
3806
|
* Set a search term to apply to the table, using a name to uniquely
|
|
3796
3807
|
* identify it.
|
|
@@ -3800,7 +3811,7 @@ interface ApiSearch<T> extends Api$1<T> {
|
|
|
3800
3811
|
* an existing search term by the given name.
|
|
3801
3812
|
* @returns API for chaining
|
|
3802
3813
|
*/
|
|
3803
|
-
fixed(this: Api
|
|
3814
|
+
fixed(this: Api, name: string, search: SearchInput<T> | null): Api<T>;
|
|
3804
3815
|
}
|
|
3805
3816
|
interface ApiPageInfo {
|
|
3806
3817
|
page: number;
|
|
@@ -3818,7 +3829,7 @@ interface ApiPageInfo {
|
|
|
3818
3829
|
* @param settings Table settings object
|
|
3819
3830
|
* @param counter Loop counter
|
|
3820
3831
|
*/
|
|
3821
|
-
type IteratorTable = (this: Api
|
|
3832
|
+
type IteratorTable = (this: Api, settings: Context, counter: number) => any;
|
|
3822
3833
|
/**
|
|
3823
3834
|
* "cell" - loop over each table and cell in the result set
|
|
3824
3835
|
*
|
|
@@ -3828,7 +3839,7 @@ type IteratorTable = (this: Api$1, settings: Context, counter: number) => any;
|
|
|
3828
3839
|
* @param tableCounter Table counter (outer)
|
|
3829
3840
|
* @param cellCounter Cell counter (inner)
|
|
3830
3841
|
*/
|
|
3831
|
-
type IteratorCell = (this: Api
|
|
3842
|
+
type IteratorCell = (this: Api, settings: Context, rowIndex: number, columnIndex: number, tableCounter: number, cellCounter: number) => any;
|
|
3832
3843
|
/**
|
|
3833
3844
|
* "columns" - loop over each item in the result set
|
|
3834
3845
|
*
|
|
@@ -3836,7 +3847,7 @@ type IteratorCell = (this: Api$1, settings: Context, rowIndex: number, columnInd
|
|
|
3836
3847
|
* @param resultItem Result set item
|
|
3837
3848
|
* @param counter Loop counter
|
|
3838
3849
|
*/
|
|
3839
|
-
type IteratorColumns = (this: Api
|
|
3850
|
+
type IteratorColumns = (this: Api, settings: Context, resultItem: any, counter: number) => any;
|
|
3840
3851
|
/**
|
|
3841
3852
|
* "column" - loop over each table and column in the result set
|
|
3842
3853
|
*
|
|
@@ -3845,7 +3856,7 @@ type IteratorColumns = (this: Api$1, settings: Context, resultItem: any, counter
|
|
|
3845
3856
|
* @param tableCounter Table counter (outer)
|
|
3846
3857
|
* @param columnCounter Column counter (inner)
|
|
3847
3858
|
*/
|
|
3848
|
-
type IteratorColumn = (this: Api
|
|
3859
|
+
type IteratorColumn = (this: Api, settings: Context, columnIndex: number, tableCounter: number, columnCounter: number) => any;
|
|
3849
3860
|
/**
|
|
3850
3861
|
* "column-rows" - loop over each table, column and row in the result set
|
|
3851
3862
|
* applying selector-modifier.
|
|
@@ -3856,7 +3867,7 @@ type IteratorColumn = (this: Api$1, settings: Context, columnIndex: number, tabl
|
|
|
3856
3867
|
* @param columnCounter Column counter (inner)
|
|
3857
3868
|
* @param rowIndexes Row indexes
|
|
3858
3869
|
*/
|
|
3859
|
-
type IteratorColumnRows = (this: Api
|
|
3870
|
+
type IteratorColumnRows = (this: Api, settings: Context, columnIndex: number, tableCounter: number, columnCounter: number, rowIndexes: number[]) => any;
|
|
3860
3871
|
/**
|
|
3861
3872
|
* "row" - loop over each table and row in the result set
|
|
3862
3873
|
*
|
|
@@ -3865,7 +3876,7 @@ type IteratorColumnRows = (this: Api$1, settings: Context, columnIndex: number,
|
|
|
3865
3876
|
* @param tableCounter Table counter (outer)
|
|
3866
3877
|
* @param rowCounter Row counter (inner)
|
|
3867
3878
|
*/
|
|
3868
|
-
type IteratorRow = (this: Api
|
|
3879
|
+
type IteratorRow = (this: Api, settings: Context, rowIndex: number, tableCounter: number, rowCounter: number) => any;
|
|
3869
3880
|
/**
|
|
3870
3881
|
* "rows" - loop over each item in the result set
|
|
3871
3882
|
*
|
|
@@ -3873,7 +3884,7 @@ type IteratorRow = (this: Api$1, settings: Context, rowIndex: number, tableCount
|
|
|
3873
3884
|
* @param resultItem Result set item
|
|
3874
3885
|
* @param counter Loop counter
|
|
3875
3886
|
*/
|
|
3876
|
-
type IteratorRows = (this: Api
|
|
3887
|
+
type IteratorRows = (this: Api, settings: Context, resultItem: any, counter: number) => any;
|
|
3877
3888
|
/**
|
|
3878
3889
|
* "every" - loop over selected items
|
|
3879
3890
|
*
|
|
@@ -3882,22 +3893,22 @@ type IteratorRows = (this: Api$1, settings: Context, resultItem: any, counter: n
|
|
|
3882
3893
|
* @param tableCounter Table counter (outer)
|
|
3883
3894
|
* @param counter Counter (inner)
|
|
3884
3895
|
*/
|
|
3885
|
-
type IteratorEvery = (this: Api
|
|
3886
|
-
interface ApiAjax extends Api
|
|
3896
|
+
type IteratorEvery = (this: Api, settings: Context, index: any, tableCounter: number, counter: number) => any;
|
|
3897
|
+
interface ApiAjax extends Api<any> {
|
|
3887
3898
|
/**
|
|
3888
3899
|
* Get the latest JSON data obtained from the last Ajax request DataTables
|
|
3889
3900
|
* made
|
|
3890
3901
|
*
|
|
3891
3902
|
* @returns JSON object that was last loaded/
|
|
3892
3903
|
*/
|
|
3893
|
-
json(this: Api
|
|
3904
|
+
json(this: Api): object;
|
|
3894
3905
|
/**
|
|
3895
3906
|
* Get the data submitted by DataTables to the server in the last Ajax
|
|
3896
3907
|
* request
|
|
3897
3908
|
*
|
|
3898
3909
|
* @returns object containing the data submitted by DataTables
|
|
3899
3910
|
*/
|
|
3900
|
-
params(this: Api
|
|
3911
|
+
params(this: Api): object;
|
|
3901
3912
|
/**
|
|
3902
3913
|
* Reload the table data from the Ajax data source.
|
|
3903
3914
|
*
|
|
@@ -3907,13 +3918,13 @@ interface ApiAjax extends Api$1<any> {
|
|
|
3907
3918
|
* paging position (false).
|
|
3908
3919
|
* @returns DataTables Api
|
|
3909
3920
|
*/
|
|
3910
|
-
reload(this: Api
|
|
3921
|
+
reload(this: Api, callback?: (json: any) => void, resetPaging?: boolean): Api<any>;
|
|
3911
3922
|
/**
|
|
3912
3923
|
* Reload the table data from the Ajax data source
|
|
3913
3924
|
*
|
|
3914
3925
|
* @returns URL set as the Ajax data source for the table.
|
|
3915
3926
|
*/
|
|
3916
|
-
url(this: Api
|
|
3927
|
+
url(this: Api): string | undefined;
|
|
3917
3928
|
/**
|
|
3918
3929
|
* Reload the table data from the Ajax data source
|
|
3919
3930
|
*
|
|
@@ -3921,9 +3932,9 @@ interface ApiAjax extends Api$1<any> {
|
|
|
3921
3932
|
* @returns DataTables Api instance for chaining or further ajax.url()
|
|
3922
3933
|
* methods
|
|
3923
3934
|
*/
|
|
3924
|
-
url(this: Api
|
|
3935
|
+
url(this: Api, url: string): AjaxMethods;
|
|
3925
3936
|
}
|
|
3926
|
-
interface AjaxMethods extends Api
|
|
3937
|
+
interface AjaxMethods extends Api<any> {
|
|
3927
3938
|
/**
|
|
3928
3939
|
* Reload the table data from the Ajax data source.
|
|
3929
3940
|
*
|
|
@@ -3933,43 +3944,43 @@ interface AjaxMethods extends Api$1<any> {
|
|
|
3933
3944
|
* paging position (false).
|
|
3934
3945
|
* @returns DataTables Api instance
|
|
3935
3946
|
*/
|
|
3936
|
-
load(this: AjaxMethods, callback?: (json: any) => void, resetPaging?: boolean): Api
|
|
3947
|
+
load(this: AjaxMethods, callback?: (json: any) => void, resetPaging?: boolean): Api<any>;
|
|
3937
3948
|
}
|
|
3938
|
-
interface ApiPage extends Api
|
|
3949
|
+
interface ApiPage extends Api<any> {
|
|
3939
3950
|
/**
|
|
3940
3951
|
* Get the current page of the table.
|
|
3941
3952
|
*
|
|
3942
3953
|
* @returns Currently displayed page number
|
|
3943
3954
|
*/
|
|
3944
|
-
(this: Api
|
|
3955
|
+
(this: Api): number;
|
|
3945
3956
|
/**
|
|
3946
3957
|
* Set the current page of the table.
|
|
3947
3958
|
*
|
|
3948
3959
|
* @param page Index or 'first', 'next', 'previous', 'last'
|
|
3949
3960
|
* @returns DataTables API instance
|
|
3950
3961
|
*/
|
|
3951
|
-
(this: Api
|
|
3962
|
+
(this: Api, page: number | string): Api<any>;
|
|
3952
3963
|
/**
|
|
3953
3964
|
* Get paging information about the table
|
|
3954
3965
|
*
|
|
3955
3966
|
* @returns Object with information about the table's paging state.
|
|
3956
3967
|
*/
|
|
3957
|
-
info(this: Api
|
|
3968
|
+
info(this: Api): ApiPageInfo;
|
|
3958
3969
|
/**
|
|
3959
3970
|
* Get the table's page length.
|
|
3960
3971
|
*
|
|
3961
3972
|
* @returns Current page length.
|
|
3962
3973
|
*/
|
|
3963
|
-
len(this: Api
|
|
3974
|
+
len(this: Api): number;
|
|
3964
3975
|
/**
|
|
3965
3976
|
* Set the table's page length.
|
|
3966
3977
|
*
|
|
3967
3978
|
* @param length Page length to set. use -1 to show all records.
|
|
3968
3979
|
* @returns DataTables API instance.
|
|
3969
3980
|
*/
|
|
3970
|
-
len(this: Api
|
|
3981
|
+
len(this: Api, length: number): Api<any>;
|
|
3971
3982
|
}
|
|
3972
|
-
interface ApiOrder extends Api
|
|
3983
|
+
interface ApiOrder extends Api<any> {
|
|
3973
3984
|
/**
|
|
3974
3985
|
* Get the ordering applied to the table.
|
|
3975
3986
|
*
|
|
@@ -3984,8 +3995,8 @@ interface ApiOrder extends Api$1<any> {
|
|
|
3984
3995
|
* @param order Order Model
|
|
3985
3996
|
* @returns DataTables Api instance
|
|
3986
3997
|
*/
|
|
3987
|
-
(order?: Order | Order[]): Api
|
|
3988
|
-
(order: Order, ...args: Order[]): Api
|
|
3998
|
+
(order?: Order | Order[]): Api<any>;
|
|
3999
|
+
(order: Order, ...args: Order[]): Api<any>;
|
|
3989
4000
|
/**
|
|
3990
4001
|
* Get the fixed ordering that is applied to the table. If there is more
|
|
3991
4002
|
* than one table in the API's context, the ordering of the first table will
|
|
@@ -4002,7 +4013,7 @@ interface ApiOrder extends Api$1<any> {
|
|
|
4002
4013
|
* before or after the users own ordering.
|
|
4003
4014
|
* @returns DataTables Api instance
|
|
4004
4015
|
*/
|
|
4005
|
-
fixed(order: OrderFixed): Api
|
|
4016
|
+
fixed(order: OrderFixed): Api<any>;
|
|
4006
4017
|
/**
|
|
4007
4018
|
* Add an ordering listener to an element, for a given column.
|
|
4008
4019
|
*
|
|
@@ -4011,39 +4022,39 @@ interface ApiOrder extends Api$1<any> {
|
|
|
4011
4022
|
* @param callback Callback function
|
|
4012
4023
|
* @returns DataTables API instance with the current order in the result set
|
|
4013
4024
|
*/
|
|
4014
|
-
listener(this: Api
|
|
4025
|
+
listener(this: Api, node: HTMLElement, column: number | number[] | (() => number[]), callback: () => void): Api<any>;
|
|
4015
4026
|
}
|
|
4016
|
-
interface ApiState<T> extends Api
|
|
4027
|
+
interface ApiState<T> extends Api<T> {
|
|
4017
4028
|
/**
|
|
4018
4029
|
* Get the last saved state of the table
|
|
4019
4030
|
*
|
|
4020
4031
|
* @returns State saved object
|
|
4021
4032
|
*/
|
|
4022
|
-
(this: Api
|
|
4033
|
+
(this: Api): State;
|
|
4023
4034
|
/**
|
|
4024
4035
|
* Set the table state from a state object
|
|
4025
4036
|
*
|
|
4026
4037
|
* @returns API instance, for chaining
|
|
4027
4038
|
*/
|
|
4028
|
-
(this: Api
|
|
4039
|
+
(this: Api, set: State, ignoreTime?: boolean): Api;
|
|
4029
4040
|
/**
|
|
4030
4041
|
* Clear the saved state of the table.
|
|
4031
4042
|
*
|
|
4032
4043
|
* @returns API instance, for chaining
|
|
4033
4044
|
*/
|
|
4034
|
-
clear(this: Api
|
|
4045
|
+
clear(this: Api): Api<any>;
|
|
4035
4046
|
/**
|
|
4036
4047
|
* Get the table state that was loaded during initialisation.
|
|
4037
4048
|
*
|
|
4038
4049
|
* @returns State saved object. See state() for the object format.
|
|
4039
4050
|
*/
|
|
4040
|
-
loaded(this: Api
|
|
4051
|
+
loaded(this: Api): StateLoad | null;
|
|
4041
4052
|
/**
|
|
4042
4053
|
* Trigger a state save.
|
|
4043
4054
|
*
|
|
4044
4055
|
* @returns API instance, for chaining
|
|
4045
4056
|
*/
|
|
4046
|
-
save(this: Api
|
|
4057
|
+
save(this: Api): Api<T>;
|
|
4047
4058
|
}
|
|
4048
4059
|
interface ApiCell<T> {
|
|
4049
4060
|
/**
|
|
@@ -4079,7 +4090,7 @@ interface ApiCellMethods<T = any> extends Omit<ApiScopeable<T, ApiCellMethods<T>
|
|
|
4079
4090
|
* @param data Value to assign to the data for the cell
|
|
4080
4091
|
* @returns DataTables Api instance
|
|
4081
4092
|
*/
|
|
4082
|
-
data(data: any): Api
|
|
4093
|
+
data(data: any): Api<T>;
|
|
4083
4094
|
/**
|
|
4084
4095
|
* Get index information about the selected cell
|
|
4085
4096
|
*
|
|
@@ -4093,7 +4104,7 @@ interface ApiCellMethods<T = any> extends Omit<ApiScopeable<T, ApiCellMethods<T>
|
|
|
4093
4104
|
* @returns DataTables API instance with selected cell references in the
|
|
4094
4105
|
* result set
|
|
4095
4106
|
*/
|
|
4096
|
-
invalidate(source?: string): Api
|
|
4107
|
+
invalidate(source?: string): Api<T>;
|
|
4097
4108
|
/**
|
|
4098
4109
|
* Get the DOM element for the selected cell
|
|
4099
4110
|
*
|
|
@@ -4117,7 +4128,7 @@ interface ApiCells<T> {
|
|
|
4117
4128
|
* and if paging or filtering
|
|
4118
4129
|
* @returns DataTables API instance with selected cells
|
|
4119
4130
|
*/
|
|
4120
|
-
(this: Api
|
|
4131
|
+
(this: Api<T>, modifier?: SelectorModifier): ApiCellsMethods<T>;
|
|
4121
4132
|
/**
|
|
4122
4133
|
* Select cells found by a cell selector
|
|
4123
4134
|
*
|
|
@@ -4126,7 +4137,7 @@ interface ApiCells<T> {
|
|
|
4126
4137
|
* and if paging or filtering
|
|
4127
4138
|
* @returns DataTables API instance with selected cells
|
|
4128
4139
|
*/
|
|
4129
|
-
(this: Api
|
|
4140
|
+
(this: Api<T>, cellSelector: CellSelector, modifier?: SelectorModifier): ApiCellsMethods<T>;
|
|
4130
4141
|
/**
|
|
4131
4142
|
* Select cells found by both row and column selectors
|
|
4132
4143
|
*
|
|
@@ -4136,7 +4147,7 @@ interface ApiCells<T> {
|
|
|
4136
4147
|
* and if paging or filtering
|
|
4137
4148
|
* @returns DataTables API instance with selected cells
|
|
4138
4149
|
*/
|
|
4139
|
-
(this: Api
|
|
4150
|
+
(this: Api<T>, rowSelector: RowSelector<T>, columnSelector: ColumnSelector, modifier?: SelectorModifier): ApiCellsMethods<T>;
|
|
4140
4151
|
}
|
|
4141
4152
|
interface ApiCellsMethods<T = any> extends Omit<ApiScopeable<T, ApiCellsMethods<T>>, 'data' | 'render' | 'select'> {
|
|
4142
4153
|
/**
|
|
@@ -4146,18 +4157,18 @@ interface ApiCellsMethods<T = any> extends Omit<ApiScopeable<T, ApiCellsMethods<
|
|
|
4146
4157
|
* columns in the result set. This is a 1D array with each entry being the
|
|
4147
4158
|
* data for the cells from the selected column.
|
|
4148
4159
|
*/
|
|
4149
|
-
data(this: ApiCellsMethods<T>): Api
|
|
4160
|
+
data(this: ApiCellsMethods<T>): Api<Array<T>>;
|
|
4150
4161
|
/**
|
|
4151
4162
|
* Iterate over each selected cell, with the function context set to be the
|
|
4152
4163
|
* cell in question. Since: DataTables 1.10.6
|
|
4153
4164
|
*
|
|
4154
4165
|
* @param fn Function to execute for every cell selected.
|
|
4155
4166
|
*/
|
|
4156
|
-
every(this: ApiCellsMethods<T>, fn: (this: ApiCellMethods<T>, cellRowIdx: number, cellColIdx: number, tableLoop: number, cellLoop: number) => void): Api
|
|
4167
|
+
every(this: ApiCellsMethods<T>, fn: (this: ApiCellMethods<T>, cellRowIdx: number, cellColIdx: number, tableLoop: number, cellLoop: number) => void): Api<any>;
|
|
4157
4168
|
/**
|
|
4158
4169
|
* Get index information about the selected cells
|
|
4159
4170
|
*/
|
|
4160
|
-
indexes(this: ApiCellsMethods<T>): Api
|
|
4171
|
+
indexes(this: ApiCellsMethods<T>): Api<CellIdxWithVisible>;
|
|
4161
4172
|
/**
|
|
4162
4173
|
* Invalidate the data held in DataTables for the selected cells
|
|
4163
4174
|
*
|
|
@@ -4165,11 +4176,11 @@ interface ApiCellsMethods<T = any> extends Omit<ApiScopeable<T, ApiCellsMethods<
|
|
|
4165
4176
|
* @returns DataTables API instance with selected cell references in the
|
|
4166
4177
|
* result set
|
|
4167
4178
|
*/
|
|
4168
|
-
invalidate(this: ApiCellsMethods<T>, source?: string): Api
|
|
4179
|
+
invalidate(this: ApiCellsMethods<T>, source?: string): Api<T>;
|
|
4169
4180
|
/**
|
|
4170
4181
|
* Get the DOM elements for the selected cells
|
|
4171
4182
|
*/
|
|
4172
|
-
nodes(this: ApiCellsMethods<T>): Api
|
|
4183
|
+
nodes(this: ApiCellsMethods<T>): Api<HTMLTableCellElement>;
|
|
4173
4184
|
/**
|
|
4174
4185
|
* Get data for the selected cell
|
|
4175
4186
|
*
|
|
@@ -4194,7 +4205,7 @@ interface ApiCellsMethods<T = any> extends Omit<ApiScopeable<T, ApiCellsMethods<
|
|
|
4194
4205
|
* when working with multi-row headers.
|
|
4195
4206
|
* @return DataTables API instance for chaining
|
|
4196
4207
|
*/
|
|
4197
|
-
title(this: ApiCellsMethods<T>, title: string, row?: number): Api
|
|
4208
|
+
title(this: ApiCellsMethods<T>, title: string, row?: number): Api<T>;
|
|
4198
4209
|
/**
|
|
4199
4210
|
* Get the column's data type (auto detected or configured).
|
|
4200
4211
|
*
|
|
@@ -4236,7 +4247,7 @@ interface ApiColumnMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnMethod
|
|
|
4236
4247
|
* columns in the result set. This is a 1D array with each entry being the
|
|
4237
4248
|
* data for the cells from the selected column.
|
|
4238
4249
|
*/
|
|
4239
|
-
data(this: ApiColumnMethods<T>): Api
|
|
4250
|
+
data(this: ApiColumnMethods<T>): Api<Array<any>>;
|
|
4240
4251
|
/**
|
|
4241
4252
|
* Get the data source property for the selected column.
|
|
4242
4253
|
*
|
|
@@ -4286,7 +4297,7 @@ interface ApiColumnMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnMethod
|
|
|
4286
4297
|
* columns in the result set. This is a 1D array with each entry being the
|
|
4287
4298
|
* node for the cells from the selected column.
|
|
4288
4299
|
*/
|
|
4289
|
-
nodes(this: ApiColumnMethods<T>): Api
|
|
4300
|
+
nodes(this: ApiColumnMethods<T>): Api<Array<HTMLTableCellElement>>;
|
|
4290
4301
|
/**
|
|
4291
4302
|
* Order the table, in the direction specified, by the column selected by
|
|
4292
4303
|
* the column() selector.
|
|
@@ -4295,7 +4306,7 @@ interface ApiColumnMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnMethod
|
|
|
4295
4306
|
* (descending) or asc (ascending).
|
|
4296
4307
|
* @returns DataTables API instance
|
|
4297
4308
|
*/
|
|
4298
|
-
order(this: ApiColumnMethods<T>, direction: string): Api
|
|
4309
|
+
order(this: ApiColumnMethods<T>, direction: string): Api<any>;
|
|
4299
4310
|
/**
|
|
4300
4311
|
* Get the orderable state for the column (from `columns.orderable`).
|
|
4301
4312
|
*/
|
|
@@ -4304,14 +4315,14 @@ interface ApiColumnMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnMethod
|
|
|
4304
4315
|
* Get a list of the column ordering directions (from
|
|
4305
4316
|
* `columns.orderSequence`).
|
|
4306
4317
|
*/
|
|
4307
|
-
orderable(this: ApiColumnMethods<T>, directions: true): Api
|
|
4318
|
+
orderable(this: ApiColumnMethods<T>, directions: true): Api<string>;
|
|
4308
4319
|
/**
|
|
4309
4320
|
* Get rendered data for the selected column.
|
|
4310
4321
|
*
|
|
4311
4322
|
* @param type Data type to get. Typically `display`, `filter`, `sort` or
|
|
4312
4323
|
* `type` although can be anything that the rendering functions expect.
|
|
4313
4324
|
*/
|
|
4314
|
-
render(this: ApiColumnMethods<T>, type?: string): Api
|
|
4325
|
+
render(this: ApiColumnMethods<T>, type?: string): Api<T>;
|
|
4315
4326
|
/**
|
|
4316
4327
|
* Search methods and properties
|
|
4317
4328
|
*/
|
|
@@ -4332,7 +4343,7 @@ interface ApiColumnMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnMethod
|
|
|
4332
4343
|
* when working with multi-row headers.
|
|
4333
4344
|
* @return DataTables API instance for chaining
|
|
4334
4345
|
*/
|
|
4335
|
-
title(this: ApiColumnMethods<T>, title: string, row?: number): Api
|
|
4346
|
+
title(this: ApiColumnMethods<T>, title: string, row?: number): Api<T>;
|
|
4336
4347
|
/**
|
|
4337
4348
|
* Get the data type for the selected column (auto detected or configured).
|
|
4338
4349
|
*
|
|
@@ -4354,7 +4365,7 @@ interface ApiColumnMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnMethod
|
|
|
4354
4365
|
* column layout (true - default) or not (false).
|
|
4355
4366
|
* @returns DataTables API instance with selected column in the result set.
|
|
4356
4367
|
*/
|
|
4357
|
-
visible(this: ApiColumnMethods<T>, show: boolean, redrawCalculations?: boolean): Api
|
|
4368
|
+
visible(this: ApiColumnMethods<T>, show: boolean, redrawCalculations?: boolean): Api<any>;
|
|
4358
4369
|
/**
|
|
4359
4370
|
* Compute the width of the selected column as they are shown.
|
|
4360
4371
|
*
|
|
@@ -4381,7 +4392,7 @@ interface ApiColumnSearch<T> {
|
|
|
4381
4392
|
* (false).
|
|
4382
4393
|
* @returns DataTables API instance
|
|
4383
4394
|
*/
|
|
4384
|
-
(input: SearchInput<T>, regex?: boolean, smart?: boolean, caseInsen?: boolean): Api
|
|
4395
|
+
(input: SearchInput<T>, regex?: boolean, smart?: boolean, caseInsen?: boolean): Api<any>;
|
|
4385
4396
|
/**
|
|
4386
4397
|
* Set the search term for the matched column.
|
|
4387
4398
|
*
|
|
@@ -4389,13 +4400,13 @@ interface ApiColumnSearch<T> {
|
|
|
4389
4400
|
* @param Search Search configuration options
|
|
4390
4401
|
* @returns DataTables API instance
|
|
4391
4402
|
*/
|
|
4392
|
-
(input: SearchInput<T>, options: Partial<SearchOptions>): Api
|
|
4403
|
+
(input: SearchInput<T>, options: Partial<SearchOptions>): Api<any>;
|
|
4393
4404
|
/**
|
|
4394
4405
|
* Get a list of the names of searches applied to the column
|
|
4395
4406
|
*
|
|
4396
4407
|
* @returns API instance containing the column's fixed search terms
|
|
4397
4408
|
*/
|
|
4398
|
-
fixed(): Api
|
|
4409
|
+
fixed(): Api<string>;
|
|
4399
4410
|
/**
|
|
4400
4411
|
* Get the search term for the column used for the given name.
|
|
4401
4412
|
*
|
|
@@ -4412,9 +4423,9 @@ interface ApiColumnSearch<T> {
|
|
|
4412
4423
|
* an existing search term by the given name.
|
|
4413
4424
|
* @returns API for chaining
|
|
4414
4425
|
*/
|
|
4415
|
-
fixed(name: string, search: SearchInput<T> | null): Api
|
|
4426
|
+
fixed(name: string, search: SearchInput<T> | null): Api<T>;
|
|
4416
4427
|
}
|
|
4417
|
-
interface ApiColumns<T> extends Api
|
|
4428
|
+
interface ApiColumns<T> extends Api<T> {
|
|
4418
4429
|
/**
|
|
4419
4430
|
* Select all columns
|
|
4420
4431
|
*
|
|
@@ -4437,7 +4448,7 @@ interface ApiColumns<T> extends Api$1<T> {
|
|
|
4437
4448
|
*
|
|
4438
4449
|
* @returns DataTables API instance.
|
|
4439
4450
|
*/
|
|
4440
|
-
adjust(this: Api
|
|
4451
|
+
adjust(this: Api): Api<T>;
|
|
4441
4452
|
}
|
|
4442
4453
|
interface ApiColumnsMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnsMethods<T>>, 'init' | 'data' | 'order' | 'render' | 'search'> {
|
|
4443
4454
|
/**
|
|
@@ -4447,14 +4458,14 @@ interface ApiColumnsMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnsMeth
|
|
|
4447
4458
|
* columns in the result set. This is a 2D array with the top level array
|
|
4448
4459
|
* entries for each column matched by the columns() selector.
|
|
4449
4460
|
*/
|
|
4450
|
-
data(this: ApiColumnsMethods<T>): Api
|
|
4461
|
+
data(this: ApiColumnsMethods<T>): Api<Array<Array<any>>>;
|
|
4451
4462
|
/**
|
|
4452
4463
|
* Get the data source property for the selected columns.
|
|
4453
4464
|
*
|
|
4454
4465
|
* @returns API instance with the result set containing the data source
|
|
4455
4466
|
* parameters for the selected columns as configured by
|
|
4456
4467
|
*/
|
|
4457
|
-
dataSrc(this: ApiColumnsMethods<T>): Api
|
|
4468
|
+
dataSrc(this: ApiColumnsMethods<T>): Api<any>;
|
|
4458
4469
|
/**
|
|
4459
4470
|
* Iterate over each selected column, with the function context set to be
|
|
4460
4471
|
* the column in question. Since: DataTables 1.10.6
|
|
@@ -4462,7 +4473,7 @@ interface ApiColumnsMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnsMeth
|
|
|
4462
4473
|
* @param fn Function to execute for every column selected.
|
|
4463
4474
|
* @returns DataTables API instance of the selected columns.
|
|
4464
4475
|
*/
|
|
4465
|
-
every(this: ApiColumnsMethods<T>, fn: (this: ApiColumnMethods<T>, colIdx: number, tableLoop: number, colLoop: number) => void): Api
|
|
4476
|
+
every(this: ApiColumnsMethods<T>, fn: (this: ApiColumnMethods<T>, colIdx: number, tableLoop: number, colLoop: number) => void): Api<any>;
|
|
4466
4477
|
/**
|
|
4467
4478
|
* Get the footer th / td cell for the selected columns.
|
|
4468
4479
|
*
|
|
@@ -4470,7 +4481,7 @@ interface ApiColumnsMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnsMeth
|
|
|
4470
4481
|
* when working with multi-row footers.
|
|
4471
4482
|
* @returns HTML element for the footer of the columns
|
|
4472
4483
|
*/
|
|
4473
|
-
footer(this: ApiColumnsMethods<T>, row?: number): Api
|
|
4484
|
+
footer(this: ApiColumnsMethods<T>, row?: number): Api<HTMLElement>;
|
|
4474
4485
|
/**
|
|
4475
4486
|
* Get the header th / td cell for a columns.
|
|
4476
4487
|
*
|
|
@@ -4478,7 +4489,7 @@ interface ApiColumnsMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnsMeth
|
|
|
4478
4489
|
* when working with multi-row headers.
|
|
4479
4490
|
* @returns HTML element for the header of the columns
|
|
4480
4491
|
*/
|
|
4481
|
-
header(this: ApiColumnsMethods<T>, row?: number): Api
|
|
4492
|
+
header(this: ApiColumnsMethods<T>, row?: number): Api<HTMLElement>;
|
|
4482
4493
|
/**
|
|
4483
4494
|
* Get the column indexes of the selected columns.
|
|
4484
4495
|
*
|
|
@@ -4487,19 +4498,19 @@ interface ApiColumnsMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnsMeth
|
|
|
4487
4498
|
* @returns DataTables API instance with selected columns' indexes in the
|
|
4488
4499
|
* result set.
|
|
4489
4500
|
*/
|
|
4490
|
-
indexes(this: ApiColumnsMethods<T>, type?: string): Api
|
|
4501
|
+
indexes(this: ApiColumnsMethods<T>, type?: string): Api<number>;
|
|
4491
4502
|
/**
|
|
4492
4503
|
* Get the initialisation objects used for the selected columns.
|
|
4493
4504
|
*
|
|
4494
4505
|
* @returns Api instance of column configuration objects
|
|
4495
4506
|
*/
|
|
4496
|
-
init(this: ApiColumnsMethods<T>): Api
|
|
4507
|
+
init(this: ApiColumnsMethods<T>): Api<Settings>;
|
|
4497
4508
|
/**
|
|
4498
4509
|
* Get the names for the selected columns (set by `columns.name`).
|
|
4499
4510
|
*
|
|
4500
4511
|
* @returns Column names (each entry can be null if not set).
|
|
4501
4512
|
*/
|
|
4502
|
-
names(this: ApiColumnsMethods<T>): Api
|
|
4513
|
+
names(this: ApiColumnsMethods<T>): Api<string | null>;
|
|
4503
4514
|
/**
|
|
4504
4515
|
* Obtain the th / td nodes for the selected columns
|
|
4505
4516
|
*
|
|
@@ -4507,7 +4518,7 @@ interface ApiColumnsMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnsMeth
|
|
|
4507
4518
|
* columns in the result set. This is a 2D array with the top level array
|
|
4508
4519
|
* entries for each column matched by the columns() selector.
|
|
4509
4520
|
*/
|
|
4510
|
-
nodes(this: ApiColumnsMethods<T>): Api
|
|
4521
|
+
nodes(this: ApiColumnsMethods<T>): Api<Array<HTMLTableCellElement>>;
|
|
4511
4522
|
/**
|
|
4512
4523
|
* Order the table, in the direction specified, by the columns selected by
|
|
4513
4524
|
* the column() selector.
|
|
@@ -4516,23 +4527,23 @@ interface ApiColumnsMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnsMeth
|
|
|
4516
4527
|
* desc (descending) or asc (ascending).
|
|
4517
4528
|
* @returns DataTables API instance
|
|
4518
4529
|
*/
|
|
4519
|
-
order(this: ApiColumnsMethods<T>, direction: string): Api
|
|
4530
|
+
order(this: ApiColumnsMethods<T>, direction: string): Api<any>;
|
|
4520
4531
|
/**
|
|
4521
4532
|
* Get the orderable state for the selected columns (from
|
|
4522
4533
|
* `columns.orderable`).
|
|
4523
4534
|
*/
|
|
4524
|
-
orderable(this: ApiColumnsMethods<T>): Api
|
|
4535
|
+
orderable(this: ApiColumnsMethods<T>): Api<boolean>;
|
|
4525
4536
|
/**
|
|
4526
4537
|
* Get a list of the column ordering directions (from
|
|
4527
4538
|
* `columns.orderSequence`).
|
|
4528
4539
|
*/
|
|
4529
|
-
orderable(this: ApiColumnsMethods<T>, directions: true): Api
|
|
4540
|
+
orderable(this: ApiColumnsMethods<T>, directions: true): Api<string>;
|
|
4530
4541
|
/**
|
|
4531
4542
|
* Get rendered data for the selected columns.
|
|
4532
4543
|
* @param type Data type to get. Typically `display`, `filter`, `sort` or
|
|
4533
4544
|
* `type` although can be anything that the rendering functions expect.
|
|
4534
4545
|
*/
|
|
4535
|
-
render(this: ApiColumnsMethods<T>, type?: string): Api
|
|
4546
|
+
render(this: ApiColumnsMethods<T>, type?: string): Api<Array<T>>;
|
|
4536
4547
|
/**
|
|
4537
4548
|
* Search methods and properties
|
|
4538
4549
|
*/
|
|
@@ -4544,7 +4555,7 @@ interface ApiColumnsMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnsMeth
|
|
|
4544
4555
|
* when working with multi-row headers.
|
|
4545
4556
|
* @return Column titles in API instance's data set
|
|
4546
4557
|
*/
|
|
4547
|
-
titles(this: ApiColumnsMethods<T>, row?: number): Api
|
|
4558
|
+
titles(this: ApiColumnsMethods<T>, row?: number): Api<string>;
|
|
4548
4559
|
/**
|
|
4549
4560
|
* Set the title text for the selected columns
|
|
4550
4561
|
*
|
|
@@ -4553,19 +4564,19 @@ interface ApiColumnsMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnsMeth
|
|
|
4553
4564
|
* when working with multi-row headers.
|
|
4554
4565
|
* @return DataTables API instance for chaining
|
|
4555
4566
|
*/
|
|
4556
|
-
titles(this: ApiColumnsMethods<T>, title: string, row?: number): Api
|
|
4567
|
+
titles(this: ApiColumnsMethods<T>, title: string, row?: number): Api<T>;
|
|
4557
4568
|
/**
|
|
4558
4569
|
* Get the data type for the selected columns (auto detected or configured).
|
|
4559
4570
|
*
|
|
4560
4571
|
* @return DataTables API instance with column types in its data set
|
|
4561
4572
|
*/
|
|
4562
|
-
types(this: ApiColumnsMethods<T>): Api
|
|
4573
|
+
types(this: ApiColumnsMethods<T>): Api<string>;
|
|
4563
4574
|
/**
|
|
4564
4575
|
* Get the visibility of the selected columns.
|
|
4565
4576
|
*
|
|
4566
4577
|
* @returns true if the columns is visible, false if it is not.
|
|
4567
4578
|
*/
|
|
4568
|
-
visible(this: ApiColumnsMethods<T>): Api
|
|
4579
|
+
visible(this: ApiColumnsMethods<T>): Api<boolean>;
|
|
4569
4580
|
/**
|
|
4570
4581
|
* Set the visibility of the selected columns.
|
|
4571
4582
|
*
|
|
@@ -4575,14 +4586,14 @@ interface ApiColumnsMethods<T = any> extends Omit<ApiScopeable<T, ApiColumnsMeth
|
|
|
4575
4586
|
* columns layout (true - default) or not (false).
|
|
4576
4587
|
* @returns DataTables API instance with selected columns in the result set.
|
|
4577
4588
|
*/
|
|
4578
|
-
visible(this: ApiColumnsMethods<T>, show: boolean, redrawCalculations?: boolean): Api
|
|
4589
|
+
visible(this: ApiColumnsMethods<T>, show: boolean, redrawCalculations?: boolean): Api<any>;
|
|
4579
4590
|
/**
|
|
4580
4591
|
* Compute the width of the selected columns as they are shown.
|
|
4581
4592
|
*
|
|
4582
4593
|
* @return Api instance with the width of each column in pixels or `null` if
|
|
4583
4594
|
* there is no data in the table.
|
|
4584
4595
|
*/
|
|
4585
|
-
widths(this: ApiColumnsMethods<T>): Api
|
|
4596
|
+
widths(this: ApiColumnsMethods<T>): Api<number | null>;
|
|
4586
4597
|
}
|
|
4587
4598
|
interface ApiColumnsSearch<T> {
|
|
4588
4599
|
/**
|
|
@@ -4590,7 +4601,7 @@ interface ApiColumnsSearch<T> {
|
|
|
4590
4601
|
*
|
|
4591
4602
|
* @returns the currently applied columns search.
|
|
4592
4603
|
*/
|
|
4593
|
-
(): Api
|
|
4604
|
+
(): Api<SearchInput<T>[]>;
|
|
4594
4605
|
/**
|
|
4595
4606
|
* Set the search term for the columns from the selector. Note this doesn't
|
|
4596
4607
|
* actually perform the search.
|
|
@@ -4603,7 +4614,7 @@ interface ApiColumnsSearch<T> {
|
|
|
4603
4614
|
* (false).
|
|
4604
4615
|
* @returns DataTables Api instance.
|
|
4605
4616
|
*/
|
|
4606
|
-
(input: SearchInput<T>, regex?: boolean, smart?: boolean, caseInsen?: boolean): Api
|
|
4617
|
+
(input: SearchInput<T>, regex?: boolean, smart?: boolean, caseInsen?: boolean): Api<any>;
|
|
4607
4618
|
/**
|
|
4608
4619
|
* Set the search term for the matched columns.
|
|
4609
4620
|
*
|
|
@@ -4611,20 +4622,20 @@ interface ApiColumnsSearch<T> {
|
|
|
4611
4622
|
* @param Search Search configuration options
|
|
4612
4623
|
* @returns DataTables API instance
|
|
4613
4624
|
*/
|
|
4614
|
-
(input: SearchInput<T>, options: Partial<SearchOptions>): Api
|
|
4625
|
+
(input: SearchInput<T>, options: Partial<SearchOptions>): Api<any>;
|
|
4615
4626
|
/**
|
|
4616
4627
|
* Get a list of the names of searches applied to the matched columns
|
|
4617
4628
|
*
|
|
4618
4629
|
* @returns API instance containing the column's fixed search terms
|
|
4619
4630
|
*/
|
|
4620
|
-
fixed(): Api
|
|
4631
|
+
fixed(): Api<string[]>;
|
|
4621
4632
|
/**
|
|
4622
4633
|
* Get the search term for the matched columns used for the given name.
|
|
4623
4634
|
*
|
|
4624
4635
|
* @param name Fixed search term to get.
|
|
4625
4636
|
* @returns The search term for the name given or undefined if not set.
|
|
4626
4637
|
*/
|
|
4627
|
-
fixed(name: string): Api
|
|
4638
|
+
fixed(name: string): Api<SearchInput<T> | undefined>;
|
|
4628
4639
|
/**
|
|
4629
4640
|
* Set a search term to apply to the matched columns, using a name to
|
|
4630
4641
|
* uniquely identify it.
|
|
@@ -4634,7 +4645,7 @@ interface ApiColumnsSearch<T> {
|
|
|
4634
4645
|
* an existing search term by the given name.
|
|
4635
4646
|
* @returns API for chaining
|
|
4636
4647
|
*/
|
|
4637
|
-
fixed(name: string, search: SearchInput<T> | null): Api
|
|
4648
|
+
fixed(name: string, search: SearchInput<T> | null): Api<T>;
|
|
4638
4649
|
}
|
|
4639
4650
|
interface ApiRowChildMethods<T> {
|
|
4640
4651
|
/**
|
|
@@ -4669,7 +4680,7 @@ interface ApiRowChildMethods<T> {
|
|
|
4669
4680
|
*
|
|
4670
4681
|
* @returns DataTables API instance.
|
|
4671
4682
|
*/
|
|
4672
|
-
hide(): Api
|
|
4683
|
+
hide(): Api<any>;
|
|
4673
4684
|
/**
|
|
4674
4685
|
* Check if the child rows of a parent row are visible
|
|
4675
4686
|
*
|
|
@@ -4681,33 +4692,33 @@ interface ApiRowChildMethods<T> {
|
|
|
4681
4692
|
*
|
|
4682
4693
|
* @returns DataTables API instance.
|
|
4683
4694
|
*/
|
|
4684
|
-
remove(): Api
|
|
4695
|
+
remove(): Api<any>;
|
|
4685
4696
|
/**
|
|
4686
4697
|
* Show the child row(s) of a parent row
|
|
4687
4698
|
*
|
|
4688
4699
|
* @returns DataTables API instance.
|
|
4689
4700
|
*/
|
|
4690
|
-
show(): Api
|
|
4701
|
+
show(): Api<any>;
|
|
4691
4702
|
}
|
|
4692
|
-
interface RowChildMethods<T> extends Api
|
|
4703
|
+
interface RowChildMethods<T> extends Api<T> {
|
|
4693
4704
|
/**
|
|
4694
4705
|
* Hide the child row(s) of a parent row
|
|
4695
4706
|
*
|
|
4696
4707
|
* @returns DataTables API instance.
|
|
4697
4708
|
*/
|
|
4698
|
-
hide(): Api
|
|
4709
|
+
hide(): Api<any>;
|
|
4699
4710
|
/**
|
|
4700
4711
|
* Remove child row(s) from display and release any allocated memory
|
|
4701
4712
|
*
|
|
4702
4713
|
* @returns DataTables API instance.
|
|
4703
4714
|
*/
|
|
4704
|
-
remove(): Api
|
|
4715
|
+
remove(): Api<any>;
|
|
4705
4716
|
/**
|
|
4706
4717
|
* Make newly defined child rows visible
|
|
4707
4718
|
*
|
|
4708
4719
|
* @returns DataTables API instance.
|
|
4709
4720
|
*/
|
|
4710
|
-
show(): Api
|
|
4721
|
+
show(): Api<any>;
|
|
4711
4722
|
}
|
|
4712
4723
|
interface ApiRow<T> {
|
|
4713
4724
|
/**
|
|
@@ -4718,7 +4729,7 @@ interface ApiRow<T> {
|
|
|
4718
4729
|
* and if paging or filtering in the table should be taken into account.
|
|
4719
4730
|
* @returns DataTables API instance with selected row in the result set
|
|
4720
4731
|
*/
|
|
4721
|
-
(this: Api
|
|
4732
|
+
(this: Api, rowSelector: RowSelector<T>, modifier?: SelectorModifier): ApiRowMethods<T>;
|
|
4722
4733
|
/**
|
|
4723
4734
|
* Add a new row to the table using the given data
|
|
4724
4735
|
*
|
|
@@ -4748,7 +4759,7 @@ interface ApiRowMethods<T = any> extends Omit<ApiScopeable<T, ApiRowMethods<T>>,
|
|
|
4748
4759
|
* @returns DataTables API instance with the row retrieved by the selector
|
|
4749
4760
|
* in the result set.
|
|
4750
4761
|
*/
|
|
4751
|
-
data(this: ApiRowMethods<T>, d: any[] | object): Api
|
|
4762
|
+
data(this: ApiRowMethods<T>, d: any[] | object): Api<T>;
|
|
4752
4763
|
/**
|
|
4753
4764
|
* Get the id of the selected row. Since: 1.10.8
|
|
4754
4765
|
*
|
|
@@ -4771,7 +4782,7 @@ interface ApiRowMethods<T = any> extends Omit<ApiScopeable<T, ApiRowMethods<T>>,
|
|
|
4771
4782
|
* @param source Data source to read the new data from. Values: 'auto',
|
|
4772
4783
|
* 'data', 'dom'
|
|
4773
4784
|
*/
|
|
4774
|
-
invalidate(this: ApiRowMethods<T>, source?: string): Api
|
|
4785
|
+
invalidate(this: ApiRowMethods<T>, source?: string): Api<Array<any>>;
|
|
4775
4786
|
/**
|
|
4776
4787
|
* Obtain the tr node for the selected row
|
|
4777
4788
|
*
|
|
@@ -4785,7 +4796,7 @@ interface ApiRowMethods<T = any> extends Omit<ApiScopeable<T, ApiRowMethods<T>>,
|
|
|
4785
4796
|
* @returns DataTables API instance with removed row reference in the result
|
|
4786
4797
|
* set
|
|
4787
4798
|
*/
|
|
4788
|
-
remove(this: ApiRowMethods<T>): Api
|
|
4799
|
+
remove(this: ApiRowMethods<T>): Api<T>;
|
|
4789
4800
|
}
|
|
4790
4801
|
interface ApiRows<T> {
|
|
4791
4802
|
/**
|
|
@@ -4795,7 +4806,7 @@ interface ApiRows<T> {
|
|
|
4795
4806
|
* and if paging or filtering in the table should be taken into account.
|
|
4796
4807
|
* @returns DataTables API instance with selected rows
|
|
4797
4808
|
*/
|
|
4798
|
-
(this: Api
|
|
4809
|
+
(this: Api, modifier?: SelectorModifier): ApiRowsMethods<T>;
|
|
4799
4810
|
/**
|
|
4800
4811
|
* Select rows found by a row selector
|
|
4801
4812
|
*
|
|
@@ -4804,7 +4815,7 @@ interface ApiRows<T> {
|
|
|
4804
4815
|
* and if paging or filtering in the table should be taken into account.
|
|
4805
4816
|
* @returns DataTables API instance with selected rows in the result set
|
|
4806
4817
|
*/
|
|
4807
|
-
(this: Api
|
|
4818
|
+
(this: Api, rowSelector?: RowSelector<T>, modifier?: SelectorModifier): ApiRowsMethods<T>;
|
|
4808
4819
|
/**
|
|
4809
4820
|
* Add new rows to the table using the data given
|
|
4810
4821
|
*
|
|
@@ -4822,7 +4833,7 @@ interface ApiRowsMethods<T = any> extends Omit<ApiScopeable<T, ApiRowsMethods<T>
|
|
|
4822
4833
|
* @returns DataTables API instance with data for each row from the selector
|
|
4823
4834
|
* in the result set.
|
|
4824
4835
|
*/
|
|
4825
|
-
data(this: ApiRowsMethods<T>): Api
|
|
4836
|
+
data(this: ApiRowsMethods<T>): Api<T>;
|
|
4826
4837
|
/**
|
|
4827
4838
|
* Iterate over each selected row, with the function context set to be the
|
|
4828
4839
|
* row in question. Since: DataTables 1.10.6
|
|
@@ -4830,7 +4841,7 @@ interface ApiRowsMethods<T = any> extends Omit<ApiScopeable<T, ApiRowsMethods<T>
|
|
|
4830
4841
|
* @param fn Function to execute for every row selected.
|
|
4831
4842
|
* @returns DataTables API instance of the selected rows.
|
|
4832
4843
|
*/
|
|
4833
|
-
every(this: ApiRowsMethods<T>, fn: (this: ApiRowMethods<T>, rowIdx: number, tableLoop: number, rowLoop: number) => void): Api
|
|
4844
|
+
every(this: ApiRowsMethods<T>, fn: (this: ApiRowMethods<T>, rowIdx: number, tableLoop: number, rowLoop: number) => void): Api<any>;
|
|
4834
4845
|
/**
|
|
4835
4846
|
* Get the ids of the selected rows. Since: 1.10.8
|
|
4836
4847
|
*
|
|
@@ -4840,37 +4851,37 @@ interface ApiRowsMethods<T = any> extends Omit<ApiScopeable<T, ApiRowsMethods<T>
|
|
|
4840
4851
|
* @returns Api instance with the selected rows in its result set. If a row
|
|
4841
4852
|
* does not have an id available 'undefined' will be returned as the value.
|
|
4842
4853
|
*/
|
|
4843
|
-
ids(this: ApiRowsMethods<T>, hash?: boolean): Api
|
|
4854
|
+
ids(this: ApiRowsMethods<T>, hash?: boolean): Api<any>;
|
|
4844
4855
|
/**
|
|
4845
4856
|
* Get the row indexes of the selected rows.
|
|
4846
4857
|
*
|
|
4847
4858
|
* @returns DataTables API instance with selected row indexes in the result
|
|
4848
4859
|
* set.
|
|
4849
4860
|
*/
|
|
4850
|
-
indexes(this: ApiRowsMethods<T>): Api
|
|
4861
|
+
indexes(this: ApiRowsMethods<T>): Api<number>;
|
|
4851
4862
|
/**
|
|
4852
4863
|
* Obtain the th / td nodes for the selected row(s)
|
|
4853
4864
|
*
|
|
4854
4865
|
* @param source Data source to read the new data from. Values: 'auto',
|
|
4855
4866
|
* 'data', 'dom'
|
|
4856
4867
|
*/
|
|
4857
|
-
invalidate(this: ApiRowsMethods<T>, source?: string): Api
|
|
4868
|
+
invalidate(this: ApiRowsMethods<T>, source?: string): Api<Array<number>>;
|
|
4858
4869
|
/**
|
|
4859
4870
|
* Obtain the tr nodes for the selected rows
|
|
4860
4871
|
*
|
|
4861
4872
|
* @returns DataTables API instance with each row's node from the selected
|
|
4862
4873
|
* rows in the result set.
|
|
4863
4874
|
*/
|
|
4864
|
-
nodes(this: ApiRowsMethods<T>): Api
|
|
4875
|
+
nodes(this: ApiRowsMethods<T>): Api<HTMLTableRowElement>;
|
|
4865
4876
|
/**
|
|
4866
4877
|
* Delete the selected rows from the DataTable.
|
|
4867
4878
|
*
|
|
4868
4879
|
* @returns DataTables API instance with references for the removed rows in
|
|
4869
4880
|
* the result set
|
|
4870
4881
|
*/
|
|
4871
|
-
remove(this: ApiRowsMethods<T>): Api
|
|
4882
|
+
remove(this: ApiRowsMethods<T>): Api<Array<any>>;
|
|
4872
4883
|
}
|
|
4873
|
-
interface ApiTableFooterMethods<T> extends Api
|
|
4884
|
+
interface ApiTableFooterMethods<T> extends Api<T> {
|
|
4874
4885
|
/**
|
|
4875
4886
|
* Get the tfoot node for the table in the API's context
|
|
4876
4887
|
*
|
|
@@ -4882,9 +4893,9 @@ interface ApiTableFooterMethods<T> extends Api$1<T> {
|
|
|
4882
4893
|
*
|
|
4883
4894
|
* @param selector Column selector
|
|
4884
4895
|
*/
|
|
4885
|
-
structure(this: Api
|
|
4896
|
+
structure(this: Api<T>, selector?: ColumnSelector): HeaderStructure[][];
|
|
4886
4897
|
}
|
|
4887
|
-
interface ApiTableHeaderMethods<T> extends Api
|
|
4898
|
+
interface ApiTableHeaderMethods<T> extends Api<T> {
|
|
4888
4899
|
/**
|
|
4889
4900
|
* Get the thead node for the table in the API's context
|
|
4890
4901
|
*
|
|
@@ -4896,7 +4907,7 @@ interface ApiTableHeaderMethods<T> extends Api$1<T> {
|
|
|
4896
4907
|
*
|
|
4897
4908
|
* @param selector Column selector
|
|
4898
4909
|
*/
|
|
4899
|
-
structure(this: Api
|
|
4910
|
+
structure(this: Api<T>, selector?: ColumnSelector): HeaderStructure[][];
|
|
4900
4911
|
}
|
|
4901
4912
|
interface ApiTableMethods<T> extends ApiScopeable<T, ApiTableMethods<T>> {
|
|
4902
4913
|
/**
|
|
@@ -4932,38 +4943,38 @@ interface ApiTablesMethods<T> extends ApiScopeable<T, ApiTablesMethods<T>> {
|
|
|
4932
4943
|
*
|
|
4933
4944
|
* @returns Array of HTML tfoot nodes for all table in the API's context
|
|
4934
4945
|
*/
|
|
4935
|
-
footer(this: ApiTablesMethods<T>): Api
|
|
4946
|
+
footer(this: ApiTablesMethods<T>): Api<Array<HTMLTableSectionElement>>;
|
|
4936
4947
|
/**
|
|
4937
4948
|
* Get the thead nodes for the tables in the API's context
|
|
4938
4949
|
*
|
|
4939
4950
|
* @returns Array of HTML thead nodes for all table in the API's context
|
|
4940
4951
|
*/
|
|
4941
|
-
header(this: ApiTablesMethods<T>): Api
|
|
4952
|
+
header(this: ApiTablesMethods<T>): Api<Array<HTMLTableSectionElement>>;
|
|
4942
4953
|
/**
|
|
4943
4954
|
* Get the tbody nodes for the tables in the API's context
|
|
4944
4955
|
*
|
|
4945
4956
|
* @returns Array of HTML tbody nodes for all table in the API's context
|
|
4946
4957
|
*/
|
|
4947
|
-
body(this: ApiTablesMethods<T>): Api
|
|
4958
|
+
body(this: ApiTablesMethods<T>): Api<Array<HTMLTableSectionElement>>;
|
|
4948
4959
|
/**
|
|
4949
4960
|
* Get the div container nodes for the tables in the API's context
|
|
4950
4961
|
*
|
|
4951
4962
|
* @returns Array of HTML div nodes for all table in the API's context
|
|
4952
4963
|
*/
|
|
4953
|
-
containers(this: ApiTablesMethods<T>): Api
|
|
4964
|
+
containers(this: ApiTablesMethods<T>): Api<Array<HTMLDivElement>>;
|
|
4954
4965
|
/**
|
|
4955
4966
|
* Iterate over each selected table, with the function context set to be the
|
|
4956
4967
|
* table in question. Since: DataTables 1.10.6
|
|
4957
4968
|
*
|
|
4958
4969
|
* @param fn Function to execute for every table selected.
|
|
4959
4970
|
*/
|
|
4960
|
-
every(this: ApiTablesMethods<T>, fn: (this: ApiTableMethods<T>, tableIndex: number) => void): Api
|
|
4971
|
+
every(this: ApiTablesMethods<T>, fn: (this: ApiTableMethods<T>, tableIndex: number) => void): Api<any>;
|
|
4961
4972
|
/**
|
|
4962
4973
|
* Get the table nodes for the tables in the API's context
|
|
4963
4974
|
*
|
|
4964
4975
|
* @returns Array of HTML table nodes for all table in the API's context
|
|
4965
4976
|
*/
|
|
4966
|
-
nodes(this: ApiTablesMethods<T>): Api
|
|
4977
|
+
nodes(this: ApiTablesMethods<T>): Api<Array<HTMLTableElement>>;
|
|
4967
4978
|
}
|
|
4968
4979
|
interface DataTablesStatic {
|
|
4969
4980
|
/**
|
|
@@ -4973,7 +4984,7 @@ interface DataTablesStatic {
|
|
|
4973
4984
|
* selects multiple tables).
|
|
4974
4985
|
* @param options Configuration options for the DataTable
|
|
4975
4986
|
*/
|
|
4976
|
-
new <T = any>(selector: string | HTMLElement, options?: Options): Api
|
|
4987
|
+
new <T = any>(selector: string | HTMLElement, options?: Options): Api<T>;
|
|
4977
4988
|
/**
|
|
4978
4989
|
* Get DataTable API instance
|
|
4979
4990
|
*
|
|
@@ -5030,13 +5041,26 @@ interface DataTablesStatic {
|
|
|
5030
5041
|
* @param table The table to check.
|
|
5031
5042
|
* @returns true the given table is a DataTable, false otherwise
|
|
5032
5043
|
*/
|
|
5033
|
-
isDataTable(table: string | Node | JQuery | Api
|
|
5044
|
+
isDataTable(table: string | Node | JQuery | Api<any>): boolean;
|
|
5045
|
+
/**
|
|
5046
|
+
* Set the DataTables Plus license key.
|
|
5047
|
+
*
|
|
5048
|
+
* @param key Your DataTables Plus license key
|
|
5049
|
+
*/
|
|
5050
|
+
key(key: string): void;
|
|
5034
5051
|
/**
|
|
5035
5052
|
* The models that DataTables uses for data storage.
|
|
5036
5053
|
*
|
|
5037
5054
|
* @ignore
|
|
5038
5055
|
*/
|
|
5039
5056
|
models: typeof _default$1;
|
|
5057
|
+
/**
|
|
5058
|
+
* Validate a "Plus" extensions
|
|
5059
|
+
*
|
|
5060
|
+
* @param date The release date of the software. ISO8601 date only format.
|
|
5061
|
+
* @param software Optional the extension name
|
|
5062
|
+
*/
|
|
5063
|
+
plus(date: string, software?: string): boolean;
|
|
5040
5064
|
/**
|
|
5041
5065
|
* Helpers for `columns.render`.
|
|
5042
5066
|
*
|
|
@@ -5067,7 +5091,7 @@ interface DataTablesStatic {
|
|
|
5067
5091
|
* Make the return an API instance
|
|
5068
5092
|
*/
|
|
5069
5093
|
api: true;
|
|
5070
|
-
}): Api
|
|
5094
|
+
}): Api<any>;
|
|
5071
5095
|
/**
|
|
5072
5096
|
* Get all DataTable tables that have been initialised - as HTML elements
|
|
5073
5097
|
*
|
|
@@ -5151,7 +5175,7 @@ interface DataTablesStatic {
|
|
|
5151
5175
|
*/
|
|
5152
5176
|
__browser: BrowserInfo;
|
|
5153
5177
|
}
|
|
5154
|
-
type ApiStaticRegisterFn<T> = (this: Api
|
|
5178
|
+
type ApiStaticRegisterFn<T> = (this: Api<T>, ...args: any[]) => any;
|
|
5155
5179
|
interface IColumnControlContent {
|
|
5156
5180
|
[name: string]: any;
|
|
5157
5181
|
}
|
|
@@ -5160,7 +5184,7 @@ interface ApiStatic {
|
|
|
5160
5184
|
* Create a new API instance to an existing DataTable. Note that this
|
|
5161
5185
|
* does not create a new DataTable.
|
|
5162
5186
|
*/
|
|
5163
|
-
new (selector: InstSelector): Api
|
|
5187
|
+
new (selector: InstSelector): Api<any>;
|
|
5164
5188
|
register<T extends Function = Function>(name: string | string[], fn: T): void;
|
|
5165
5189
|
registerPlural<T extends Function = Function>(pluralName: string, singleName: string, fn: T): void;
|
|
5166
5190
|
}
|
|
@@ -5264,6 +5288,36 @@ interface ExtTypeSettings {
|
|
|
5264
5288
|
*/
|
|
5265
5289
|
search: any;
|
|
5266
5290
|
}
|
|
5291
|
+
interface JQueryDataTables extends JQuery {
|
|
5292
|
+
/**
|
|
5293
|
+
* Returns DataTables API instance
|
|
5294
|
+
* Usage:
|
|
5295
|
+
* $( selector ).dataTable().api();
|
|
5296
|
+
*/
|
|
5297
|
+
api(): Api<any>;
|
|
5298
|
+
}
|
|
5299
|
+
declare global {
|
|
5300
|
+
interface JQueryDataTableApi extends DataTablesStatic {
|
|
5301
|
+
<T = any>(opts?: Options): Api<T>;
|
|
5302
|
+
}
|
|
5303
|
+
interface JQueryDataTableJq extends DataTablesStatic {
|
|
5304
|
+
(opts?: Options): JQueryDataTables;
|
|
5305
|
+
}
|
|
5306
|
+
interface JQuery {
|
|
5307
|
+
/**
|
|
5308
|
+
* Create a new DataTable, returning a DataTables API instance.
|
|
5309
|
+
* @param opts Configuration settings
|
|
5310
|
+
*/
|
|
5311
|
+
DataTable: JQueryDataTableApi;
|
|
5312
|
+
/**
|
|
5313
|
+
* Create a new DataTable, returning a jQuery object, extended
|
|
5314
|
+
* with an `api()` method which can be used to access the
|
|
5315
|
+
* DataTables API.
|
|
5316
|
+
* @param opts Configuration settings
|
|
5317
|
+
*/
|
|
5318
|
+
dataTable: JQueryDataTableJq;
|
|
5319
|
+
}
|
|
5320
|
+
}
|
|
5267
5321
|
|
|
5268
5322
|
declare const DataTable$1: DataTablesStatic;
|
|
5269
5323
|
|
|
@@ -5285,42 +5339,5 @@ declare const DataTable$1: DataTablesStatic;
|
|
|
5285
5339
|
interface DataTable extends DataTablesStatic {}
|
|
5286
5340
|
declare const DataTable: typeof DataTable$1;
|
|
5287
5341
|
|
|
5288
|
-
|
|
5289
|
-
// jQuery integration for legacy support
|
|
5290
|
-
interface JQueryDataTables extends JQuery {
|
|
5291
|
-
/**
|
|
5292
|
-
* Returns DataTables API instance
|
|
5293
|
-
* Usage:
|
|
5294
|
-
* $( selector ).dataTable().api();
|
|
5295
|
-
*/
|
|
5296
|
-
api(): Api<any>;
|
|
5297
|
-
}
|
|
5298
|
-
|
|
5299
|
-
declare global {
|
|
5300
|
-
interface JQueryDataTableApi extends DataTablesStatic {
|
|
5301
|
-
<T = any>(opts?: Options): Api<T>;
|
|
5302
|
-
}
|
|
5303
|
-
|
|
5304
|
-
interface JQueryDataTableJq extends DataTablesStatic {
|
|
5305
|
-
(opts?: Options): JQueryDataTables;
|
|
5306
|
-
}
|
|
5307
|
-
|
|
5308
|
-
interface JQuery {
|
|
5309
|
-
/**
|
|
5310
|
-
* Create a new DataTable, returning a DataTables API instance.
|
|
5311
|
-
* @param opts Configuration settings
|
|
5312
|
-
*/
|
|
5313
|
-
DataTable: JQueryDataTableApi;
|
|
5314
|
-
|
|
5315
|
-
/**
|
|
5316
|
-
* Create a new DataTable, returning a jQuery object, extended
|
|
5317
|
-
* with an `api()` method which can be used to access the
|
|
5318
|
-
* DataTables API.
|
|
5319
|
-
* @param opts Configuration settings
|
|
5320
|
-
*/
|
|
5321
|
-
dataTable: JQueryDataTableJq;
|
|
5322
|
-
}
|
|
5323
|
-
}
|
|
5324
|
-
|
|
5325
|
-
export { Api$1 as Api, Settings as ColumnContext, DataTable, Dom, DataTable as default, _default as util };
|
|
5342
|
+
export { Api, Settings as ColumnContext, DataTable, Dom, DataTable as default, _default as util };
|
|
5326
5343
|
export type { AjaxMethods, AjaxOptions, ApiAjax, ApiCaption, ApiCell, ApiCellMethods, ApiCells, ApiCellsMethods, ApiColumn, ApiColumnMethods, ApiColumnSearch, ApiColumns, ApiColumnsMethods, ApiColumnsSearch, ApiConstructor, ApiOrder, ApiPage, ApiPageInfo, ApiRow, ApiRowChildMethods, ApiRowMethods, ApiRows, ApiRowsMethods, ApiScopeable, ApiSearch, ApiSelector, ApiState, ApiStatic, ApiStaticRegisterFn, ApiTableFooterMethods, ApiTableHeaderMethods, ApiTableMethods, ApiTablesMethods, CellIdx, CellIdxWithVisible, CellSelector, ColumnIdx, ColumnSelector, Options$1 as ColumnsConfig, Context, DataTablesStatic, DataTablesStaticExtButtons, DataTablesStaticRender, Defaults, DomSelector, Ext, ExtButtons, ExtTypeSettings, HeaderStructure, IColumnControlContent, InstSelector, ConfigLanguage as Language, Options, RowChildMethods, Row as RowContext, RowIdx, RowSelector, SelectorModifier, Context as Settings, State, StateLoad, TableSelector };
|