npm.io
6.0.2 • Published 6 years ago

fixed-react-data-grid

Licence
MIT
Version
6.0.2
Deps
3
Size
340 kB
Vulns
0
Weekly
0

react-data-grid

The core of react-data-grid

React Data Grid with no merged community fixes

Current fixes:

https://github.com/adazzle/react-data-grid/pull/1476 - mareolan https://github.com/adazzle/react-data-grid/pull/1489 - szogun1987

Oficial github: https://github.com/adazzle/react-data-grid

Install

npm install --save fixed-react-data-grid

Usage

import ReactDataGrid from 'fixed-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
shapes shapes
_constants _constants
_helpers _helpers

Keywords