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

how to directly change the values of nodes and connectors during runtime?

hi.

I want to change the value of AddInfo I have when I press an arbitrary button during runtime. I have looked at the provided methods, but I couldn't find a way to update the value. Is there a method available for updating the value?


1 Reply

VG Vivisa Ganesan Syncfusion Team April 18, 2023 01:30 PM UTC

Hi,

We have created the sample to achieve your requirement. We have changed the addInfo value at runtime on button click. Please refer the sample below.

Code-snippet:

 addInfo(){

      let diagramObj = document.getElementById("diagram");

    diagramInstance = diagramObj.ej2_instances[0];

    diagramInstance.selectedItems.nodes[0].addInfo ={name:'flowshape'}

},

 


Attachment: CommandManager_8ac6c842.zip

Loader.
Live Chat Icon For mobile
Up arrow icon