react-data-grid-m1n-version
v1.0.1
Published
A version of react-data-grid where the cells does not have autofocus, prevent it from been stealing the focus from anothers components on the page, and cells can be editable only after double click.
Downloads
327
Readme
react-data-grid-m1n-version
Install
npm install react-data-grid-m1n-version
Usage
import ReactDataGrid from 'react-data-grid-m1n-version';
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
Aside from the grid this package exports:
name | source | -----------------------|-----------------------------------------| RowComparer | RowComparer | RowsContainer | RowsContainer | Row | Row | Cell | Cell | HeaderCell | HeaderCell | shapes | shapes | _helpers | _helpers |