svelte-jsoneditor
svelte-jsoneditor copied to clipboard
Implement an onRenderContextMenu to customize the context menu
As we already have a insert, remove, transfer. Are we allowed to add or delete this options???
Right now there is an option to customize the main menu with onRenderMenu
. There is no option yet to customize the context menu. Is that what you mean?
the context menu is nothing but the below right?? If yes , then yes that's what i meant.
Indeed, that's the context menu (which isn't yet customizable)
okay, Thank you for the information.
I'm really looking forward to this feature, in fact I'm currently using the react version of the editor, but in order to implement the custom menu I had to folk a copy of the source code to try and modify the svelte code myself, however that's not something I'm good at and it's very annoying, I'll be relieved the day the feature is implemented!
👍 help implementing onRenderContextMenu
would be welcome.
A new option onRenderContextMenu
is now available in v0.21.0
.
A new option
onRenderContextMenu
is now available inv0.21.0
.
good to know that, is there any example / demo code for usage of onRenderContextMenu
There is an example here: /examples/custom_context_menu_buttons/+page.svelte.
At this moment there is still is an issue with the new onRenderContextMenu
, see #379. It's fixed but not yet published.