7.0.0-alpha.25 • Published 6 years ago
@kevinseghetti/react-data-grid v7.0.0-alpha.25
react-data-grid

Install
npm install react-data-gridUsage
import DataGrid from '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 <DataGrid
columns={columns}
rowGetter={rowGetter}
rowsCount={rows.length}
minHeight={500} />;
}Exports
Aside from the grid this package exports:
| name | source |
|---|---|
| RowComparer | RowComparer |
| RowsContainer | RowsContainer |
| Row | Row |
| Cell | Cell |
| HeaderCell | HeaderCell |
| shapes | shapes |
7.0.0-alpha.25
6 years ago