CarlosNZ / json-edit-react

React component for editing/viewing JSON/object data

Home Page:https://carlosnz.github.io/json-edit-react/

Repository from Github https://github.comCarlosNZ/json-edit-reactRepository from Github https://github.comCarlosNZ/json-edit-react

Add a "viewer" prop that can lock down *all* editing

CarlosNZ opened this issue · comments

Currently, you have to set three different props: restrictEdit, restrictAdd, and restrictDelete to prevent all editing. If you just want a quick way to turn this into a viewer-only, there should be viewer prop that will take the place of those three.

It would be boolean only, no functions.