1.2.1 • Published 5 years ago

react-data-grid-another v1.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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