Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
147779 | Sep 24,2019 02:57 AM UTC | Sep 24,2019 08:53 AM UTC | ASP.NET Core - EJ 2 | 3 |
![]() |
Tags: Diagram |
//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);
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.