Hello,
I was able to add a custom button to my graph's context menu, using the nodeMenu -> buttons array like this:
nodeMenu:
{
buttons: ["expand", "focus", "lock", "hide", customButton]
},
This works nicely, however I want to show the button only on the context menu for certain nodes (based on a property of the node) - for the remaining nodes, the button should either be disabled or, most preferably, hidden.
I was not able to find a mechanism to do that in the documentation - is it somehow possible?
Thanks