holiber / sl-vue-tree

Customizable draggable tree component for Vue.js
MIT License
344 stars 79 forks source link

How to implement @nodecontextmenu? No documentation #16

Closed robogeek closed 5 years ago

robogeek commented 6 years ago

In the application I'm pondering it would be useful for the tree viewer to have a context menu.

The documentation doesn't say what to do, and neither do the demos.

I see in the source code that nodecontextmenu is emitted, and I am successfully receiving the event, but don't know what to do afterward.

holiber commented 6 years ago

Hey. Check the example https://holiber.github.io/sl-vue-tree/demo/index - it has a context menu handling.