Is there a way to change the connector label on change of connection in the canvas and can we rerender diagram component with previous data

Hi,

Is there a way to change the connector label on change of connection in the canvas and can we rerender diagram component with previous data?

I have used diagramInstance.addLabels(), with this the labels are getting appended but not getting replaced.

Regards,
Sudhanshu

1 Reply

SG Shyam G Syncfusion Team November 18, 2019 04:37 PM UTC

Hi Sudhanshu, 
 
Please use diagram addLabels method to add a label at runtime. Please refer to a help documentation. If an label is rendered initially, you can change it by setting node.annotations[0].content property at runtime. Please share us an exact scenario of changing the label at runtime with screenshot or video. 
 
 
Regards, 
Shyam G 


Loader.
Up arrow icon