josdejong / svelte-jsoneditor

A web-based tool to view, edit, format, repair, query, transform, and validate JSON
https://jsoneditoronline.org
Other
814 stars 108 forks source link

Feature request - Ability to configure render of contextMenu #442

Closed talgershman closed 2 weeks ago

talgershman commented 3 weeks ago

In mode 'tree'.

The only why to remove the contextMenu from the cell is to set readOnly to true.

I would like the abililty to disable the render of the contextMenu when creating a jsonEditor.

Some view are very simple - no need to do anything in the menu.

josdejong commented 3 weeks ago

You can configure an onRenderContextMenu that returns false to disable the context menu.

Docs: https://github.com/josdejong/svelte-jsoneditor?tab=readme-ov-file#onrendercontextmenu