6.1.3 • Published 5 years ago
fixed-react-data-grid-custom v6.1.3
react-data-grid
The core of react-data-grid
React Data Grid with no merged community fixes
Current fixes:
https://github.com/adazzle/react-data-grid/pull/1476 - mareolan https://github.com/adazzle/react-data-grid/pull/1489 - szogun1987
Oficial github: https://github.com/adazzle/react-data-grid
Install
npm install --save fixed-react-data-gridUsage
import ReactDataGrid from 'fixed-react-data-grid';
const columns = [{ key: 'id', name: 'ID' }, { key: 'title', name: 'Title' }];
const rows = [{ id: 1, title: 'Title 1' }, ...];
const rowGetter = rowNumber => rows[rowNumber];
const Grid = () => {
return <ReactDataGrid
columns={columns}
rowGetter={rowGetter}
rowsCount={rows.length}
minHeight={500} />);
}Exports
Asside from the grid this package exports:
| name | source |
|---|---|
| RowComparer | RowComparer |
| RowsContainer | RowsContainer |
| Row | Row |
| Cell | Cell |
| HeaderCell | HeaderCell |
| editors | Editors |
| formatters | Formatters |
| shapes | shapes |
| _constants | _constants |
| _helpers | _helpers |