We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon