RED.events.on("links:add", function(link) {
///link.left
///link.right
})
in the above code can I access data of left and right nodes of the link.!!
RED.events.on("links:add", function(link) {
///link.left
///link.right
})
in the above code can I access data of left and right nodes of the link.!!
You can get downstream by looking in the nodes
property of the id
node in question.
If you really want upstream nodes, you would have to scan all nodes and check their nodes
property for the existence of id
of the node in question
However, can I ask why? A node should not care about upstream and downstream nodes.
I was just wondering what properties we can access and operations we can perform using "link" object
there isn't much detail in documentation for "links:add" event so I just wanted to know what operations we can perform using link object.!
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.