forked from dhobi/datatables.colResize
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.d.ts
More file actions
29 lines (26 loc) · 740 Bytes
/
types.d.ts
File metadata and controls
29 lines (26 loc) · 740 Bytes
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
/// <reference types="jquery" />
/// <reference types="datatables.net"/>
declare namespace DataTables {
interface Settings {
colResize?: ColResizeSettings;
}
interface ColResizeSettings {
isEnabled?: 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;
}
interface Api {
colResize: {
enable(): Api;
disable(): Api;
reset(): Api;
};
}
}