Hi,
We have Node Template in which prints following node:
Can we get the double-click and context-menu click event over it.
I have tried ObjectDoubleClicked event but, in it the subject is given the sub-part of the node and not the whole node,
Is there a way to get a double-click event on node level if the event happen on sub-part of node.
$(go.Diagram, "myDiagramDiv",
{
"ObjectDoubleClicked": function(e) {
console.log("ObjectDoubleClicked " + e.subject.part.key);
},
. . .
})
myDiagram.nodeTemplate =
$(go.Node, "Auto",
{
doubleClick: function(e, node) {
console.log("doubleClick " + node.key);
}
},
. . .
You might want to read GoJS Events -- Northwoods Software