@rlreamy/react-data-grid

3.0.17 • Public • Published

react-data-grid

The core of react-data-grid

Install

npm install --save 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

Asside from the grid this package exports:

name source
RowComparer RowComparer
RowsContainer RowsContainer
Row Row
Cell Cell
HeaderCell HeaderCell
editors Editors
formatters Formatters
utils utils
shapes shapes
_constants _constants
_helpers _helpers

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.0.170latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.170
3.0.160
3.0.150
3.0.140
3.0.130
3.0.120
3.0.110
3.0.100
3.0.80
3.0.70
3.0.60
3.0.50
3.0.40

Package Sidebar

Install

npm i @rlreamy/react-data-grid

Weekly Downloads

0

Version

3.0.17

License

MIT

Unpacked Size

702 kB

Total Files

6

Last publish

Collaborators

  • rlreamy
  • zwright