About connector Events

Is there any event that will get triggered if I draw a line from the port using port constraints(PortConstraints.Draw

I need the event to be continuously emitted while the user is drawing it

1 Reply 1 reply marked as answer

GG Gowtham Gunashekar Syncfusion Team February 24, 2021 02:38 PM UTC

Hi Sunil, 
 
We don’t have any event support to notify the drawing connector object, however after drawn the connector the “collectionChnage” event will emit by the diagram. We have added the code snipper and online sample link for the collection change event. 
 
Code snippet: 
<ejs-diagram ref="diagramControl" id="diagram" width="100%" height="700px" :collectionChange="collectionChange" > 
</ejs-diagram> 
 
export default Vue.extend({ 
  data: function() { 
    return {   
              collectionChange: (args) => { 
              getEventDetails(args); 
            }, 
     } 
  } 
}            
 
 
Regards, 
Gowtham 


Marked as answer
Loader.
Up arrow icon