7.0.0-alpha.20 • Published 5 years ago

runcy-grid v7.0.0-alpha.20

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

react-data-grid npm-badge bundlesize-badge coverage-badge

Install

npm install react-data-grid

Usage

import ReactDataGrid 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 <ReactDataGrid
    columns={columns}
    rowGetter={rowGetter}
    rowsCount={rows.length}
    minHeight={500} />);
}

Exports

Aside from the grid this package exports:

namesource
RowComparerRowComparer
RowsContainerRowsContainer
RowRow
CellCell
HeaderCellHeaderCell
shapesshapes
_helpers_helpers