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
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,7 @@ The only *required* value is `data` (although you will need to provide a `setDat
150
150
|`jsonStringify`|`(data: JsonData) => string`|`(data) => JSON.stringify(data, null, 2)`| Similarly, you can override the default presentation of the JSON string when starting editing JSON. You can supply different formatting parameters to the native `JSON.stringify()`, or provide a third-party option, like the aforementioned JSON5. |
151
151
|`errorMessageTimeout`|`number`|`2500`| Time (in milliseconds) to display the error message in the UI. ||
152
152
|`keyboardControls`|`KeyboardControls`| As explained [above](#usage)| Override some or all of the keyboard controls. See [Keyboard customisation](#keyboard-customisation) for details. ||
153
+
|`insertAtTop`|`boolean\| "object \| "array"`|`false`| If `true`, inserts new values at the *top* rather than bottom. Can set the behaviour just for arrays or objects by setting to `"object"` or `"array"` respectively. ||
153
154
154
155
## Managing state
155
156
@@ -750,7 +751,9 @@ This component is heavily inspired by [react-json-view](https://github.com/mac-s
750
751
751
752
## Changelog
752
753
753
-
- **1.18.0**: Ability to [customise keyboard controls](#keyboard-customisation)
754
+
- **1.18.0**:
755
+
- Ability to [customise keyboard controls](#keyboard-customisation)
756
+
- Option to insert new values at the top
754
757
- **1.17.0**: `defaultValue` function takes the new `key` as second parameter
755
758
- **1.16.0**: Extend the "click" zone for collapsing nodes to the header bar and left margin (not just the collapse icon)
0 commit comments