react-data-grid-another

1.2.1 • Public • Published

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} />);
}

Package Sidebar

Install

npm i react-data-grid-another

Weekly Downloads

5

Version

1.2.1

License

MIT

Unpacked Size

348 kB

Total Files

7

Last publish

Collaborators

  • scratchx