Open jduncanRadBlue opened 4 years ago
linksUpdated only seems to fire when a link is started. Do you know how to get event information (connected nodes, link, etc) after a link is created?
I have the same question!
@oscarkwan did you find out how to do this?
Hard to explain how to solve this but there are several ways. One way is you can extend the core models and then fire your own custom events which include information about the link/node/entity that changed and then setup these listeners as the graph is mutated.
Does anyone know how to label the link with data that sits inside the node data (node data was attached upon creation of node)? When the node is created, I attach a JSON object to the node for hopes of being able to access later for purposes of posting an API call. When the node event for onDrop is called, I can see the data being logged in the event.dataTrasfer.getData() call, but on the linksUpdated event, I can't find said data?
I can't seem to dig through linksUpdated event to find the node data?
Full BodyWidget Code: