CarlosNZ/json-edit-react

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

CarlosNZ opened this issue · 0 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.