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
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ This component provides a responsive interface for displaying arrays or JSON in
10
10
* Check out an [interactive demo here](https://mac-s-g.github.io/react-json-view/example/example.html).
11
11
* Check out a [React implementation example here](https://github.com/mac-s-g/react-json-view/blob/master/example/example.js).
12
12
* Check out an [ES5 implementation example here](https://github.com/mac-s-g/react-json-view/blob/master/example/example.html).
13
-
*[Installation instructions](#intallation-instructions) are listed below.
13
+
*[Installation instructions](#installation-instructions) are listed below.
14
14
15
15
### Implementation Example:
16
16
```
@@ -26,7 +26,7 @@ import ReactJson from 'react-json-view'
26
26
27
27
[See More Examples](https://mac-s-g.github.io/react-json-view/example/example.html)
28
28
29
-
### Intallation Instructions
29
+
### Installation Instructions
30
30
Install this package with npm:
31
31
```
32
32
npm install --save react-json-view
@@ -49,7 +49,7 @@ Name|Type|Default|Description
49
49
`enableClipboard`|`boolean`|`true`|When set to `true`, the user can copy objects and arrays to clipboard
50
50
`displayObjectSize`|`boolean`|`true`|When set to `true`, objects and arrays are labeled with size
51
51
`displayDataTypes`|`boolean`|`true`|When set to `true`, data type labels prefix values
52
-
`onEdit`|`(edit) => {}`|`false`|When a callback function is passed in, value edits are enabled. The callback is invoked when edits are made.
52
+
`onEdit`|`(edit) => {}`|`false`|When a callback function is passed in, value edits are enabled. The callback is invoked when edits are made.[see: onEdit docs](#onedit-interaction)
53
53
54
54
### Features
55
55
* Object and array nodes can be collapsed and expanded
@@ -75,12 +75,15 @@ Check out the [list of supported themes here](https://github.com/gaearon/base16-
75
75
76
76
### onEdit Interaction
77
77
Click the pencil icon to initialize an edit
78
+
78
79

79
80
80
81
Input a new value. RJV will attempt to recognize integer and float inputs.
0 commit comments