sls-react-data-grid
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Fork react-data-grid@7.0.0-alpha.29

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

Install

npm install react-data-grid

Usage

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

Exports

Aside from the grid this package exports:

name source
RowComparer RowComparer
RowsContainer RowsContainer
Row Row
Cell Cell
HeaderCell HeaderCell
shapes shapes

Package Sidebar

Install

npm i sls-react-data-grid

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

412 kB

Total Files

136

Last publish

Collaborators

  • murmuri