react-data-grid-another
v1.2.1
Published
Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like
Downloads
5
Maintainers
Readme
react-data-grid-another
if you use react-data-grid, please use the real repository of react-data-grid
Install
npm install --save react-data-grid-another
Usage
import ReactDataGrid from 'react-data-grid-another';
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} />);
}