6.1.0 • Published 4 years ago

@emsi-iggy/rulework-react-data-grid v6.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

(forked) react-data-grid

The core of react-data-grid

Differences

The only difference between react-data-grid 6.1.0 and this version is thex solved problem with draggable and resizable columns width.

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:

namesource
RowComparerRowComparer
RowsContainerRowsContainer
RowRow
CellCell
HeaderCellHeaderCell
editorsEditors
formattersFormatters
shapesshapes
_constants_constants
_helpers_helpers