You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Examples are located in https://github.com/nadbm/react-datasheet/tree/master/docs/src/examples
11
10
11
+
Current features:
12
12
* Select cells, copy-paste cells
13
13
* Navigation using keyboard keys
14
14
* Deletion using keyboard keys
@@ -19,10 +19,10 @@ Current features
19
19
## Installation
20
20
21
21
Install from npm:
22
-
```javascript
22
+
```bash
23
23
$ npm install react-datasheet --save
24
24
```
25
-
Import in your project
25
+
Import in your project:
26
26
27
27
```javascript
28
28
importReactDataSheetfrom'react-datasheet';
@@ -73,39 +73,36 @@ class App extends React.Component {
73
73
There are two values that each cell shows. The first is via ```valueRenderer``` and the second is via ```dataRenderer```. When a cell is in *edit mode*, it will show the value returned from ```dataRenderer```. It needs to return a string as this value is set in an input field.
onPaste | func | onPaste handler: `function(array) {}` If set, the function will be called with an array of rows. Each row has an array of objects containing the cell and raw pasted value. If the pasted value cannot be matched with a cell, the cell value will be undefined
0 commit comments