I have some input didn't want to be delete or add.
Closed this issue · 3 comments
yujulchen commented
MrHertal commented
Hi,
you can use all the options that react json view offers in the reactJsonOptions
props.
yujulchen commented
Hi
I tried to use it like this but the delete icon is still on there.
<JsonInput
source="source"
defaultValue={{...}}
reactJsonOptions={{
name: "name",
collapsed: true,
enableClipboard: false,
displayDataTypes: true,
onDelete: false,
}}
/>
ReactJsonOptions seems should work like the react-json-view demo's defaults?
https://github.com/mac-s-g/react-json-view/blob/7c154b9a7d83ea89dce2c171ebdf4d163ff49233/demo/src/js/components/Demo.js#L23-L36
MrHertal commented
Hi, you are right there was a bug with the props onAdd
, onEdit
and onDelete
It's now fixed by this release.