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
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ import ReactJsonView from '@microlink/react-json-view'
73
73
|`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. |
74
74
|`shouldCollapse`|`(field)=>{}`|`false`| Callback function to provide control over what objects and arrays should be collapsed by default. An object is passed to the callback containing `name`, `src`, `type` ("array" or "object") and `namespace`. |
75
75
|`groupArraysAfterLength`|`integer`| 100 | When an integer value is assigned, arrays will be displayed in groups by count of the value. Groups are displayed with bracket notation and can be expanded and collapsed by clicking on the brackets. |
76
+
|`numberOfArrayGroupsToDisplay`|`integer` or `null`|`null`| When an integer value is assigned, only the specified number of array groups will be displayed. If there are more groups, an ellipsis will be shown. This works in conjunction with groupArraysAfterLength. When null (default), all groups are displayed (no change in behavior). |
76
77
|`enableClipboard`|`boolean` or `(copy)=>{}`|`true`| When prop is not `false`, the user can copy objects and arrays to clipboard by clicking on the clipboard icon. Copy callbacks are supported. |
77
78
|`displayObjectSize`|`boolean`|`true`| When set to `true`, objects and arrays are labeled with size. |
78
79
|`displayDataTypes`|`boolean`|`true`| When set to `true`, data type labels prefix values. |
constdisplayGroups=numberOfArrayGroupsToDisplay!==null&&numberOfArrayGroupsToDisplay!==undefined ? Math.min(groups,numberOfArrayGroupsToDisplay) : groups
0 commit comments