-
Notifications
You must be signed in to change notification settings - Fork 27
/
types.d.ts
32 lines (29 loc) · 916 Bytes
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/// <reference types="jquery" />
/// <reference types="datatables.net"/>
declare namespace DataTables {
interface Settings {
colResize?: ColResizeSettings;
}
interface ColResizeSettings {
isEnabled?: boolean;
saveState?: boolean;
hoverClass?: string;
hasBoundCheck?: boolean;
minBoundClass?: string;
maxBoundClass?: string;
isResizable?: (column: ColumnLegacy) => boolean;
onResizeStart?: (column: ColumnLegacy, columns: (ColumnLegacy)[]) => void;
onResize?: (column: ColumnLegacy) => void;
onResizeEnd?: (column: ColumnLegacy, columns: (ColumnLegacy)[]) => void;
getMinWidthOf?: ($thNode: JQuery<HTMLTableCellElement>) => number;
stateSaveCallback?: (settings: DataTables.ColResizeSettings, data: any[]) => void;
stateLoadCallback?: (settings: DataTables.ColResizeSettings) => void;
}
interface Api {
colResize: {
enable(): Api;
disable(): Api;
reset(): Api;
};
}
}