react-data-grid
Version:
Data grid for React
127 lines (54 loc) • 1.1 kB
Markdown
`Canvas` (component)
====================
Props
-----
### `cellMetaData` (required)
type: `shapeunknown`
### `className`
type: `string`
### `columns` (required)
type: `union(object|array)`
### `contextMenu`
type: `element`
### `displayEnd` (required)
type: `number`
### `displayStart` (required)
type: `number`
### `expandedRows`
type: `array`
### `getSubRowDetails`
type: `func`
### `height` (required)
type: `number`
### `onRows`
type: `func`
defaultValue: `() => {}`
### `onScroll`
type: `func`
### `rowGetter`
type: `union(func|array)`
### `rowGroupRenderer`
type: `func`
### `rowHeight` (required)
type: `number`
### `rowKey`
type: `string`
### `rowRenderer`
type: `union(func|element)`
defaultValue: `require('./Row')`
### `rowScrollTimeout`
type: `number`
defaultValue: `0`
### `rowSelection`
type: `union(shape|shape|shape)`
### `rowsCount` (required)
type: `number`
### `selectedRows`
type: `array`
defaultValue: `[]`
### `style`
type: `string`
### `totalWidth`
type: `union(number|string)`
### `width`
type: `number`