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.
Up arrow icon