Need to call a function when Linking the Nodes

Hi Walter,

I want to call a function and I need to get the data from the both of the nodes to pass as arguments in that function.

Can we fetch the data based on the link ,For this which function I need to call.

How will I get the data while linking the two nodes and Which function do I need to call to get the data. I have looked into GoJS Changed events But I couldn’t find out. can you help me with this ?.

Thanks in Advance.


It sounds like you want to register a “LinkDrawn” DiagramEvent listener.
Of course once you have the new Link you can look at its Link.fromNode and Link.toNode.

A post was split to a new topic: Preventing duplicate drops of nodes