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
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,6 +206,7 @@ This is a reference list of *all* possible props, divided into related sections.
206
206
|`collapseClickZones`|`Array<"left" \| "header" \| "property">`|`["left", "header"]`| Aside from the <spanstyle="font-size: 140%">`⌄`</span> icon, you can specify other regions of the UI to be clickable for collapsing/opening a collection. |
207
207
|`rootName`|`string`|`"data"`| A name to display in the editor as the root of the data object. |
208
208
|`showArrayIndices`|`boolean`|`true`| Whether or not to display the index (as a property key) for array elements. |
209
+
|`arrayIndexFromOne`|`boolean`|`false`| When displaying array indices, first item will be labelled "1" (as opposed to "0"). |
209
210
|`showStringQuotes`|`boolean`|`true`| Whether or not to display string values in "quotes". |
210
211
|`showCollectionCount`|`boolean\|"when-closed"`|`true`| Whether or not to display the number of items in each collection (object or array). |
211
212
|`stringTruncate`|`number`|`250`| String values longer than this many characters will be displayed truncated (with `...`). The full string will always be visible when editing. |
@@ -1241,6 +1242,7 @@ This component is heavily inspired by [react-json-view](https://github.com/mac-s
1241
1242
1242
1243
## Changelog
1243
1244
1245
+
- **1.28.3**: Option to display array indexes starting at "1" ([#62](https://github.com/CarlosNZ/json-edit-react/issues/62))
1244
1246
- **1.28.2**: When switching data type, only keep editing if new type is primitive ([#216](https://github.com/CarlosNZ/json-edit-react/issues/216))
1245
1247
- **1.28.1**: Fix left padding of root node when value is primitive ([#214](https://github.com/CarlosNZ/json-edit-react/issues/214))
0 commit comments