react-json-view
Advanced tools
Comparing version 1.10.0 to 1.10.1
{ | ||
"name": "react-json-view", | ||
"description": "Interactive react component for displaying javascript arrays and JSON objects.", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"main": "dist/main.js", | ||
@@ -6,0 +6,0 @@ "files": [ |
@@ -48,3 +48,3 @@ ![alt text](https://github.com/mac-s-g/react-json-view/blob/master/doc/rjv-icon-alt.png?raw=true) | ||
`indentWidth`|`integer`|4|Set the indent-width for nested objects | ||
`collapsed`|`boolean`|`false`|When set to `true`, all nodes will be collapsed by default | ||
`collapsed`|`boolean` or `integer`|`false`|When set to `true`, all nodes will be collapsed by default. Use an integer value to collapse at a particular depth. | ||
`collapseStringsAfterLength`|`integer`|`false`|When an integer value is assigned, strings will be cut off at that length. Collapsed strings are followed by an ellipsis. String content can be expanded and collapsed by clicking on the string value. | ||
@@ -54,5 +54,5 @@ `enableClipboard`|`boolean`|`true`|When set to `true`, the user can copy objects and arrays to clipboard | ||
`displayDataTypes`|`boolean`|`true`|When set to `true`, data type labels prefix values | ||
`onEdit`|`(edit) => {}`|`false`|When a callback function is passed in, `edit` functionality is enabled. The callback is invoked before edits are completed. Returning `false` from `onEdit` will prevent the change from being made. [see: onEdit docs](#onedit-interaction) | ||
`onAdd`|`(add) => {}`|`false`|When a callback function is passed in, `add` functionality is enabled. The callback is invoked before additions are completed. Returning `false` from `onAdd` will prevent the change from being made. | ||
`onDelete`|`(delete) => {}`|`false`|When a callback function is passed in, `delete` functionality is enabled. The callback is invoked before deletions are completed. Returning `false` from `onDelete` will prevent the change from being made. | ||
`onEdit`|`(edit) => {}`|`false`|When a callback function is passed in, `edit` functionality is enabled. The callback is invoked before edits are completed. Returning `false` from `onEdit` will prevent the change from being made. [see: onEdit docs](#onedit-interaction) | ||
@@ -153,2 +153,1 @@ ### Features | ||
2. Improve style organization | ||
3. Support integer input to `collapsed` prop to collapse at a particular depth. |
Sorry, the diff of this file is too big to display
391297
151