-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added TS typings - Added missing onResizeStart to readme.md
- Loading branch information
Daniel Hobi
committed
Feb 10, 2022
1 parent
ad2d1c2
commit ca44a14
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"name": "datatables.net-colresize-unofficial", | ||
"version": "1.6.1", | ||
"description": "Plugin to resize columns by mouse drag or touch.", | ||
"main": "./jquery.dataTables.colResize.js", | ||
"types": "./types.d.ts", | ||
"files": [ | ||
"jquery.dataTables.colResize.js", | ||
"jquery.dataTables.colResize.css", | ||
"types.d.ts" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/dhobi/datatables.colResize.git" | ||
}, | ||
"keywords": [], | ||
"dependencies": { | ||
"datatables.net": ">=1.10.9", | ||
"jquery": ">=1.7" | ||
}, | ||
"moduleType": [ | ||
"globals", | ||
"amd", | ||
"node" | ||
], | ||
"author": "Daniel Hobi", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/dhobi/datatables.colResize/issues" | ||
}, | ||
"homepage": "https://github.com/dhobi/datatables.colResize#readme" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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; | ||
}; | ||
} | ||
} |