2.0.13 • Published 6 years ago

react-data-grid-lei v2.0.13

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

react-data-grid

This is a folk version of react-data-grid with some enhancements.

Install

npm install --save react-data-grid-lei

Enhancements:

1. Make the editable cell into editing status when focus in.
```
quickEdit = true
``` 
2. Skip the none-editable cells when press tab or arraw keys:
```
focusEditOnly = true
```

Usage

import ReactDataGrid from 'react-data-grid-lei';

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
 	quickEdit={true}
 	focusEditOnly={true}
   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
utilsutils
shapesshapes
_constants_constants
_helpers_helpers

upstream/master

2.0.13

6 years ago

2.0.12

7 years ago

2.0.11

7 years ago

2.0.10

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

1.0.48

7 years ago