Hi Aung,
The connectors sourceID and targetID properties are used to determine the connection established between the sourceNode and targetNode respectively. These properties will have a node id. Please refer to a code example below.
Code example:
//create button
<input type="button" value="getConnectors" onclick="getConnectors()"/>
//method called on button click
function getConnectors() {
var diagram = document.getElementById("diagram").ej2_instances[0];
//get connectors in diagram
var connectors = diagram.connectors;
//iterate connectors
for( var i=0; i <connectors.length; i++) {
var connector = connectors[i];
//get sourceNode id
console.log(connector.sourceID);
//get targetNode id
console.log(connector.targetID);
}
} |
Regards,
Shyam G