Example on how to implement contextmenu on node right click #2208
Unanswered
maria-benson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to add a context menu on right click of the node . I have tried with contextmenu/ oncontext event but they don't seem to support prevent default function. Even with the click it supports preventdefault but still the browser contextmenu is showing up instead. Any suggestions on how to approach this.
example: - network.on('click/contextmenu/oncontext', (event) => {
console.log(event);
const pointer = event.pointer;
});
Beta Was this translation helpful? Give feedback.
All reactions