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
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ A [React](https://github.com/facebook/react) component for editing or viewing JS
28
28
> **Version 1.14.0** has a change which recommends you provide a `setData` prop and not use `onUpdate` for updating your data externally. See [Managing state](#managing-state).
29
29
30
30
## Contents
31
+
-[Contents](#contents)
31
32
-[Installation](#installation)
32
33
-[Implementation](#implementation)
33
34
-[Usage](#usage)
@@ -121,8 +122,8 @@ The only *required* value is `data` (although you will need to provide a `setDat
121
122
|`restrictEdit`|`boolean\|FilterFunction`|`false`| If `true`, no editing is permitted. A function can be provided for more specificity — see [Filter functions](#filter-functions)|
122
123
|`restrictDelete`|`boolean\|FilterFunction`|`false`| As with `restrictEdit` but for deletion |
123
124
|`restrictAdd`|`boolean\|FilterFunction`|`false`| As with `restrictEdit` but for adding new properties |
124
-
|`restrictTypeSelection`|`boolean\|FilterFunction`|`true`|Set to `false` to enable drag and drop functionality. See [Drag-n-drop](#drag-n-drop)|
125
-
|`restrictDrag`|`boolean\|DataType[]\|TypeFilterFunction`|`false`| For restricting the data types the user can select. Can be a list of data types (e.g. `[ 'string', 'number', 'boolean', 'array', 'object', 'null' ]`) or a boolean. A function can be provided -- it should take the same input as the above `FilterFunction`s, but output should be `boolean \| DataType[]`.|
125
+
|`restrictTypeSelection`|`boolean\|DataType[]\|TypeFilterFunction`|`true`|For restricting the data types the user can select. Can be a list of data types (e.g. `[ 'string', 'number', 'boolean', 'array', 'object', 'null' ]`) or a boolean. A function can be provided -- it should take the same input as the above `FilterFunction`s, but output should be `boolean \| DataType[]`.|
126
+
|`restrictDrag`|`boolean\|FilterFunction`|`true`| Set to `false` to enable drag and drop functionality. See [Drag-n-drop](#drag-n-drop)|
126
127
|`searchText`|`string`|`undefined`| Data visibility will be filtered by matching against value, using the method defined below in `searchFilter`|
127
128
|`searchFilter`|`"key"\|"value"\|"all"\|SearchFilterFunction`|`undefined`| Define how `searchText` should be matched to filter the visible items. See [Search/Filtering](#searchfiltering)|
128
129
|`searchDebounceTime`|`number`|`350`| Debounce time when `searchText` changes |
@@ -666,12 +667,13 @@ A few helper functions, components and types that might be useful in your own im
666
667
- `ThemeInput`: input type for the `theme` prop
667
668
- `JsonEditorProps`: all input props for the Json Editor component
668
669
- `JsonData`: main `data` object -- any valid JSON structure
- `TranslateFunction`: function that takes a [localisation](#localisation) key and returns a translated string
671
672
- `IconReplacements`: input type for the `icons` prop
672
673
- `CollectionNodeProps`: all props passed internally to "collection" nodes (i.e. objects/arrays)
673
674
- `ValueNodeProps`: all props passed internally to "value" nodes (i.e. *not* objects/arrays)
674
675
- `CustomNodeProps`: all props passed internally to [Custom nodes](#custom-nodes); basically the same as `CollectionNodeProps` with an extra `customNodeProps` field for passing props unique to your component`
0 commit comments