Best way to add annotations to a connector at runtime?

Looking for a way to create something like this:
See the source image

I see add() and addConnector() and don't see much documentation.

Thx.


1 Reply 1 reply marked as answer

GG Gowtham Gunashekar Syncfusion Team October 2, 2020 11:51 AM UTC

Hi Lan, 
 
We have added a sample lint to demonstrate how to add annotations to the connector at runtime. 
 
 
Code snippet: 
created={(args) => { 
           diagramInstance.addLabels(diagramInstance.connectors[0],[{  content:"added label” }]) 
        }} 
 
Regards, 
Gowtham  


Marked as answer
Loader.
Up arrow icon