New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-data-grid

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-data-grid - npm Package Compare versions

Comparing version 2.0.17 to 2.0.18

122

react-data-grid v2.0/index.d.ts

@@ -32,3 +32,3 @@ // Type definitions for react-data-grid 2.0

*/
columns?: Array<Column>
columns?: Array<Column> | undefined

@@ -40,3 +40,3 @@ /**

*/
onRowUpdated?: (e: RowUpdateEvent) => void
onRowUpdated?: ((e: RowUpdateEvent) => void) | undefined
/**

@@ -47,3 +47,3 @@ * Invoked when the user pulls down the drag handle of an editable cell.

*/
onCellsDragged?: (e: CellDragEvent) => void
onCellsDragged?: ((e: CellDragEvent) => void) | undefined
/**

@@ -54,3 +54,3 @@ * Invoked when the user double clicks on the drag handle of an editable cell.

*/
onDragHandleDoubleClick?: (e: DragHandleDoubleClickEvent) => void
onDragHandleDoubleClick?: ((e: DragHandleDoubleClickEvent) => void) | undefined
/**

@@ -61,3 +61,3 @@ * Invoked when the user copies a value from one cell and pastes it into another (in the same column).

*/
onCellCopyPaste?: (e: CellCopyPasteEvent) => void
onCellCopyPaste?: ((e: CellCopyPasteEvent) => void) | undefined
/**

@@ -67,3 +67,3 @@ * Invoked after the user updates the grid rows in any way.

*/
onGridRowsUpdated?: (e: GridRowsUpdatedEvent) => void
onGridRowsUpdated?: ((e: GridRowsUpdatedEvent) => void) | undefined

@@ -74,3 +74,3 @@ /**

*/
toolbar?: React.ReactElement
toolbar?: React.ReactElement | undefined
/**

@@ -80,3 +80,3 @@ * A context menu to disiplay when the user right-clicks a cell.

*/
contextMenu?: React.ReactElement
contextMenu?: React.ReactElement | undefined
/**

@@ -86,7 +86,7 @@ * A react component to customize how rows are rendered.

*/
rowRenderer?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any>
rowRenderer?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any> | undefined
/**
* A component to display when there are no rows to render.
*/
emptyRowsView?: React.ComponentClass<any> | React.StatelessComponent<any>
emptyRowsView?: React.ComponentClass<any> | React.StatelessComponent<any> | undefined

@@ -96,3 +96,3 @@ /**

*/
minWidth?: number
minWidth?: number | undefined
/**

@@ -102,3 +102,3 @@ * The minimum height of the entire grid in pixels.

*/
minHeight?: number
minHeight?: number | undefined
/**

@@ -108,3 +108,3 @@ * The height of each individual row in pixels.

*/
rowHeight?: number
rowHeight?: number | undefined
/**

@@ -114,3 +114,3 @@ * The height of the header row in pixels.

*/
headerRowHeight?: number
headerRowHeight?: number | undefined
/**

@@ -120,3 +120,3 @@ * The height of the header filter row in pixels.

*/
headerFiltersHeight?: number
headerFiltersHeight?: number | undefined
/**

@@ -126,3 +126,3 @@ * The minimum width of each column in pixels.

*/
minColumnWidth?: number
minColumnWidth?: number | undefined
/**

@@ -133,3 +133,3 @@ * Invoked when a column has been resized.

*/
onColumnResize?: (index: number, width: number) => void
onColumnResize?: ((index: number, width: number) => void) | undefined

@@ -143,3 +143,3 @@ /**

*/
cellNavigationMode?: 'none' | 'loopOverRow' | 'changeRow'
cellNavigationMode?: 'none' | 'loopOverRow' | 'changeRow' | undefined

@@ -152,3 +152,3 @@ /**

*/
onGridSort?: (sortColumn: string, sortDirection: 'ASC' | 'DESC' | 'NONE') => void
onGridSort?: ((sortColumn: string, sortDirection: 'ASC' | 'DESC' | 'NONE') => void) | undefined

@@ -158,3 +158,3 @@ /**

*/
sortDirection?: 'ASC' | 'DESC' | 'NONE'
sortDirection?: 'ASC' | 'DESC' | 'NONE' | undefined

@@ -164,3 +164,3 @@ /**

*/
sortColumn?: string
sortColumn?: string | undefined

@@ -172,3 +172,3 @@ /**

*/
onAddFilter?: (filter: Filter) => void
onAddFilter?: ((filter: Filter) => void) | undefined
/**

@@ -178,3 +178,3 @@ * Called when the user clears all filters.

*/
onClearFilters?: () => void
onClearFilters?: (() => void) | undefined

@@ -187,3 +187,3 @@ /**

*/
enableRowSelect?: boolean | 'single' | 'multi'
enableRowSelect?: boolean | 'single' | 'multi' | undefined
/**

@@ -193,3 +193,3 @@ * Called when a row is selected.

*/
onRowSelect?: (rows: Array<object>) => void
onRowSelect?: ((rows: Array<object>) => void) | undefined
/**

@@ -200,3 +200,3 @@ * A property that's unique to every row.

*/
rowKey?: string
rowKey?: string | undefined

@@ -207,3 +207,3 @@ /**

*/
enableCellSelect?: boolean
enableCellSelect?: boolean | undefined

@@ -214,3 +214,3 @@ /**

*/
enableDragAndDrop?: boolean
enableDragAndDrop?: boolean | undefined

@@ -221,3 +221,3 @@ /**

*/
onCellSelected?: (coordinates: {rowIdx: number, idx: number}) => void
onCellSelected?: ((coordinates: {rowIdx: number, idx: number}) => void) | undefined
/**

@@ -227,3 +227,3 @@ * Called when a cell is deselected.

*/
onCellDeSelected?: (coordinates: {rowIdx: number, idx: number}) => void
onCellDeSelected?: ((coordinates: {rowIdx: number, idx: number}) => void) | undefined

@@ -234,3 +234,3 @@ /**

*/
rowScrollTimeout?: number
rowScrollTimeout?: number | undefined
/**

@@ -240,12 +240,12 @@ * Options object for selecting rows

rowSelection?: {
showCheckbox?: boolean
enableShiftSelect?: boolean
onRowsSelected?: (rows: Array<SelectionParams>) => void,
onRowsDeselected?: (rows: Array<SelectionParams>) => void,
showCheckbox?: boolean | undefined
enableShiftSelect?: boolean | undefined
onRowsSelected?: ((rows: Array<SelectionParams>) => void) | undefined,
onRowsDeselected?: ((rows: Array<SelectionParams>) => void) | undefined,
selectBy?: {
indexes?: Array<number>;
keys?: { rowKey: string, values: Array<any> };
isSelectedKey?: string;
}
}
indexes?: Array<number> | undefined;
keys?: { rowKey: string, values: Array<any> } | undefined;
isSelectedKey?: string | undefined;
} | undefined
} | undefined
/**

@@ -255,3 +255,3 @@ * A custom formatter for the select all checkbox cell

*/
selectAllRenderer?: React.ComponentClass<any> | React.StatelessComponent<any>;
selectAllRenderer?: React.ComponentClass<any> | React.StatelessComponent<any> | undefined;
/**

@@ -261,3 +261,3 @@ * A custom formatter for select row column

*/
rowActionsCell?: React.ComponentClass<any> | React.StatelessComponent<any>;
rowActionsCell?: React.ComponentClass<any> | React.StatelessComponent<any> | undefined;
/**

@@ -269,3 +269,3 @@ * An event function called when a row is clicked.

*/
onRowClick?: (rowIdx: number, row: object) => void
onRowClick?: ((rowIdx: number, row: object) => void) | undefined

@@ -278,3 +278,3 @@ /**

*/
onRowDoubleClick?: (rowIdx : number, row : object) => void
onRowDoubleClick?: ((rowIdx : number, row : object) => void) | undefined

@@ -285,3 +285,3 @@ /**

*/
onRowExpandToggle?: (props: OnRowExpandToggle ) => void
onRowExpandToggle?: ((props: OnRowExpandToggle ) => void) | undefined

@@ -294,5 +294,5 @@ /**

*/
getValidFilterValues?: (columnKey: string) => Array<any>
getValidFilterValues?: ((columnKey: string) => Array<any>) | undefined
getCellActions?: (column: Column, row: object) => (ActionButton | ActionMenu)[]
getCellActions?: ((column: Column, row: object) => (ActionButton | ActionMenu)[]) | undefined
}

@@ -331,3 +331,3 @@

*/
width?: number
width?: number | undefined
/**

@@ -337,3 +337,3 @@ * Whether this column can be resized by the user.

*/
resizable?: boolean
resizable?: boolean | undefined
/**

@@ -343,3 +343,3 @@ * Whether this column should stay fixed on the left as the user scrolls horizontally.

*/
locked?: boolean
locked?: boolean | undefined
/**

@@ -349,3 +349,3 @@ * Whether this column can be edited.

*/
editable?: boolean
editable?: boolean | undefined
/**

@@ -355,3 +355,3 @@ * Whether the rows in the grid can be sorted by this column.

*/
sortable?: boolean
sortable?: boolean | undefined
/**

@@ -361,7 +361,7 @@ * Whether the rows in the grid can be filtered by this column.

*/
filterable?: boolean;
filterable?: boolean | undefined;
/**
* A custom formatter for this column's filter.
*/
filterRenderer?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any>;
filterRenderer?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any> | undefined;
/**

@@ -371,11 +371,11 @@ * The editor for this column. Several editors are available in "react-data-grid/addons".

*/
editor?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any>
editor?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any> | undefined
/**
* A custom read-only formatter for this column. An image formatter is available in "react-data-grid/addons".
*/
formatter?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any>
formatter?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any> | undefined
/**
* A custom formatter for this column's header.
*/
headerRenderer?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any>
headerRenderer?: React.ReactElement | React.ComponentClass<any> | React.StatelessComponent<any> | undefined
/**

@@ -389,11 +389,11 @@ * Events to be bound to the cells in this specific column.

[name: string]: ColumnEventCallback
}
} | undefined
/**
* Retrieve meta data about the row, optionally provide column as a second argument
*/
getRowMetaData?: (rowdata: any, column?: Column) => any;
getRowMetaData?: ((rowdata: any, column?: Column) => any) | undefined;
/**
* A class name to be applied to the cells in the column
*/
cellClass?: string;
cellClass?: string | undefined;
/**

@@ -403,3 +403,3 @@ * Whether this column can be dragged (re-arranged).

*/
draggable?: boolean;
draggable?: boolean | undefined;
}

@@ -406,0 +406,0 @@

{
"name": "@types/react-data-grid",
"version": "2.0.17",
"version": "2.0.18",
"description": "TypeScript definitions for react-data-grid",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-data-grid",
"license": "MIT",

@@ -39,4 +40,4 @@ "contributors": [

},
"typesPublisherContentHash": "2304d68377591258bb5a04ea1923e206cd1fbf42f0692282a7a48fa50383ae7b",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "436b90ecc1876763301b2d5070e7e5ea6915ea23ed69b8ae5627f2d27f66f260",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 15 May 2020 11:32:22 GMT
* Last updated: Thu, 08 Jul 2021 20:20:35 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -14,0 +14,0 @@ * Global values: `AdazzleReactDataGrid`, `AdazzleReactDataGridPlugins`

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc