Cloud Stack Ninja

I found this example to create a right-click menu in Svelte, which works fine. It is bound on the whole document body using svelte:body.

What I would like to have is a right-click menu only in context of specific Component e.g. a list of steps, where with the menu I could have actions like "mark all items in the list before" or "mark all items after the current step as red".



Read more here: https://stackoverflow.com/questions/64390569/how-to-create-a-context-sensitive-right-click-menu-in-svelte

Content Attribution

This content was originally published by dvelderp at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: