react-data-grid
Version:
Data grid for React
170 lines (70 loc) • 1.48 kB
Markdown
`Grid` (component)
==================
Props
-----
### `cellMetaData`
type: `shapeunknown`
### `columnMetrics`
type: `object`
### `columns`
type: `union(array|object)`
### `contextMenu`
type: `element`
### `draggableHeaderCell`
type: `func`
### `emptyRowsView`
type: `func`
### `expandedRows`
type: `union(array|func)`
### `getSubRowDetails`
type: `func`
### `getValidFilterValues`
type: `func`
### `headerRows`
type: `union(array|func)`
### `minHeight`
type: `number`
defaultValue: `350`
### `onColumnResize`
type: `func`
### `onRows`
type: `func`
### `onSort`
type: `func`
### `onViewportDoubleClick` (required)
type: `func`
### `onViewportDragEnd` (required)
type: `func`
### `onViewportDragStart` (required)
type: `func`
### `onViewportKeydown` (required)
type: `func`
### `onViewportKeyup`
type: `func`
### `rowGetter` (required)
type: `union(array|func)`
### `rowGroupRenderer`
type: `func`
### `rowHeight`
type: `number`
defaultValue: `35`
### `rowKey` (required)
type: `string`
### `rowOffsetHeight` (required)
type: `number`
### `rowRenderer`
type: `union(element|func)`
### `rowScrollTimeout`
type: `number`
### `rowSelection`
type: `union(shape|shape|shape)`
### `rowsCount`
type: `number`
### `selectedRows`
type: `union(array|func)`
### `sortColumn`
type: `string`
### `sortDirection`
type: `enum('ASC'|'DESC'|'NONE')`
### `totalWidth`
type: `union(number|string)`