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.

Regards,
Akhil

It sounds like you want to register a “LinkDrawn” DiagramEvent listener.
https://gojs.net/latest/intro/events.html
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