@types/react-data-grid
Advanced tools
Comparing version 1.0.7 to 2.0.0
@@ -1,6 +0,6 @@ | ||
// Type definitions for react-data-grid 1.0.4 | ||
// Type definitions for react-data-grid 2.0 | ||
// Project: https://github.com/adazzle/react-data-grid.git | ||
// Definitions by: Simon Gellis <https://github.com/SupernaviX> | ||
// Definitions by: Simon Gellis <https://github.com/SupernaviX>, Kieran Peat <https://github.com/KieranPeat> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
// TypeScript Version: 2.2 | ||
@@ -21,3 +21,3 @@ /// <reference types="react" /> | ||
*/ | ||
rowGetter: Array<Object> | ((rowIdx: number) => Object) | ||
rowGetter: Array<object> | ((rowIdx: number) => object) | ||
/** | ||
@@ -152,3 +152,3 @@ * The total number of rows to render. Required. | ||
*/ | ||
onRowSelect?: (rows: Array<Object>) => void | ||
onRowSelect?: (rows: Array<object>) => void | ||
/** | ||
@@ -196,2 +196,9 @@ * A property that's unique to every row. | ||
} | ||
/** | ||
* An event function called when a row is clicked. | ||
* Clicking the header row will trigger a call with -1 for the rowIdx. | ||
* @param rowIdx zero index number of row clicked | ||
* @param row object behind the row | ||
*/ | ||
onRowClick?: (rowIdx : number, row : object) => void | ||
} | ||
@@ -241,4 +248,8 @@ | ||
*/ | ||
filterable?: boolean | ||
filterable?: boolean; | ||
/** | ||
* A custom formatter for this column's filter. | ||
*/ | ||
filterRenderer?: React.ReactElement<any> | React.ComponentClass<any> | React.StatelessComponent<any>; | ||
/** | ||
* The editor for this column. Several editors are available in "react-data-grid/addons". | ||
@@ -265,2 +276,10 @@ * @default A simple text editor | ||
} | ||
/** | ||
* Retrieve meta data about the row, optionally provide column as a second argument | ||
*/ | ||
getRowMetaData?: (rowdata: any, column?: Column) => any; | ||
/** | ||
* A class name to be applied to the cells in the column | ||
*/ | ||
cellClass?: string; | ||
} | ||
@@ -288,3 +307,3 @@ | ||
*/ | ||
updated: Object | ||
updated: object | ||
/** | ||
@@ -337,3 +356,3 @@ * The name of the column that was updated. | ||
*/ | ||
rowData: Object | ||
rowData: object | ||
/** | ||
@@ -390,3 +409,3 @@ * The double click event. | ||
*/ | ||
updated: Object | ||
updated: object | ||
/** | ||
@@ -483,3 +502,3 @@ * The action that occurred to trigger this event. | ||
declare module "react-data-grid/addons" { | ||
declare module "react-data-grid-addons" { | ||
import Plugins = AdazzleReactDataGridPlugins; | ||
@@ -486,0 +505,0 @@ import Editors = Plugins.Editors; |
{ | ||
"name": "@types/react-data-grid", | ||
"version": "1.0.7", | ||
"version": "2.0.0", | ||
"description": "TypeScript definitions for react-data-grid", | ||
"license": "MIT", | ||
"author": "Simon Gellis <https://github.com/SupernaviX>", | ||
"contributors": [ | ||
{ | ||
"name": "Simon Gellis", | ||
"url": "https://github.com/SupernaviX" | ||
}, | ||
{ | ||
"name": "Kieran Peat", | ||
"url": "https://github.com/KieranPeat" | ||
} | ||
], | ||
"main": "", | ||
@@ -17,4 +26,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "c6d2cb7fdb1ce401818884e7849db381f9771cbbe2777f493f5d0391af795f5b", | ||
"typeScriptVersion": "2.1" | ||
"typesPublisherContentHash": "02f3da9f4be290c8e1c6b5ae90955f4bf448f485bb739fdd0e4a01697fcc3881", | ||
"typeScriptVersion": "2.2" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/react-data-grid | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-data-grid | ||
Additional Details | ||
* Last updated: Mon, 23 Jan 2017 21:31:29 GMT | ||
* Last updated: Tue, 04 Apr 2017 16:37:16 GMT | ||
* Dependencies: react | ||
@@ -17,2 +17,2 @@ * Global values: AdazzleReactDataGrid, AdazzleReactDataGridPlugins | ||
# Credits | ||
These definitions were written by Simon Gellis <https://github.com/SupernaviX>. | ||
These definitions were written by Simon Gellis <https://github.com/SupernaviX>, Kieran Peat <https://github.com/KieranPeat>. |
19137
3
491