@types/react-data-grid
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -49,4 +49,7 @@ // Type definitions for react-data-grid 4.0 | ||
columns?: Array<Column<T>> | ||
/** | ||
* Called when the grid is scrolled | ||
*/ | ||
onScroll?:(scrollState:ScrollState) => void | ||
/** | ||
* Invoked when the user changes the value of a single cell. | ||
@@ -378,3 +381,27 @@ * Should update that cell's value. | ||
} | ||
enum SCROLL_DIRECTION { | ||
UP = 'upwards', | ||
DOWN = 'downwards', | ||
LEFT = 'left', | ||
RIGHT = 'right', | ||
NONE = 'none' | ||
} | ||
interface ScrollState { | ||
height: number; | ||
scrollTop: number; | ||
scrollLeft: number; | ||
rowVisibleStartIdx: number; | ||
rowVisibleEndIdx: number; | ||
rowOverscanStartIdx: number; | ||
rowOverscanEndIdx: number; | ||
colVisibleStartIdx: number; | ||
colVisibleEndIdx: number; | ||
colOverscanStartIdx: number; | ||
colOverscanEndIdx: number; | ||
scrollDirection: SCROLL_DIRECTION; | ||
lastFrozenColumnIndex: number; | ||
isScrolling: boolean; | ||
} | ||
interface ColumnEventCallback { | ||
@@ -388,3 +415,3 @@ /** | ||
} | ||
/** | ||
@@ -391,0 +418,0 @@ * Information about a row update. Generic event type returns untyped row, use parameterized type with the row type as the parameter |
{ | ||
"name": "@types/react-data-grid", | ||
"version": "4.0.3", | ||
"version": "4.0.4", | ||
"description": "TypeScript definitions for react-data-grid", | ||
@@ -39,4 +39,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "f2317e731a3261d6eadc5302195e643bb9ced5d09b5a34caabc26803179084f3", | ||
"typesPublisherContentHash": "c90ef682bbf39c34a807e8d22907ab36a10b1e2b0ec5fea8e010da1e50db5e8c", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 10 Jul 2019 20:41:30 GMT | ||
* Last updated: Tue, 24 Sep 2019 23:42:30 GMT | ||
* Dependencies: @types/react | ||
@@ -14,0 +14,0 @@ * Global values: AdazzleReactDataGrid, AdazzleReactDataGridPlugins |
27315
688