jsoneditor icon indicating copy to clipboard operation
jsoneditor copied to clipboard

Question: how can I disable the type selection on the root node?

Open KatyTao opened this issue 3 years ago • 1 comments

Hello,

Is it possible to customize the dropdown menu for the root node only? In my case, I want the type for the root node can't be changed, but the child node's type can still be changeable. In that case, removing or disabling the type button in the root node would be preferable. image

Any help would be appreciated

Regards

KatyTao avatar Aug 05 '22 06:08 KatyTao

Maybe you can use the onCreateMenu option to remove this menu item in case it is the root object.

josdejong avatar Aug 16 '22 07:08 josdejong