Skip to content

Commit 48303a3

Browse files
authored
Added settings that are in the readme and js file but missing in the types. (dhobi#13)
1 parent 980b176 commit 48303a3

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

types.d.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,18 @@ declare namespace DataTables {
88

99
interface ColResizeSettings {
1010
isEnabled?: boolean;
11+
saveState?: boolean;
1112
hoverClass?: string;
1213
hasBoundCheck?: boolean;
1314
minBoundClass?: string;
1415
maxBoundClass?: string;
15-
isResizable?: (column : ColumnLegacy) => boolean;
16-
onResizeStart?: (column: ColumnLegacy, columns : (ColumnLegacy)[]) => void;
16+
isResizable?: (column: ColumnLegacy) => boolean;
17+
onResizeStart?: (column: ColumnLegacy, columns: (ColumnLegacy)[]) => void;
1718
onResize?: (column: ColumnLegacy) => void;
18-
onResizeEnd?: (column: ColumnLegacy, columns : (ColumnLegacy)[]) => void;
19-
getMinWidthOf?: ($thNode : JQuery<HTMLTableCellElement>) => number;
19+
onResizeEnd?: (column: ColumnLegacy, columns: (ColumnLegacy)[]) => void;
20+
getMinWidthOf?: ($thNode: JQuery<HTMLTableCellElement>) => number;
21+
stateSaveCallback?: (settings: DataTables.ColResizeSettings, data: any[]) => void;
22+
stateLoadCallback?: (settings: DataTables.ColResizeSettings) => void;
2023
}
2124

2225
interface Api {

0 commit comments

Comments
 (0)