Diagram component - Auto save

Hi,

I am using reactJS.
Now am trying to do autosave if any changes made inside the diagram component.

I saw there are events to catch all the actions like text change, connector change ..... etc

Is there any one event that catches all the action performed inside Diagram?


1 Reply 1 reply marked as answer

AR Aravind Ravi Syncfusion Team August 24, 2020 07:40 AM UTC

Hi Arul, 

We have created a sample to save diagram on every property change action. When you do any interactions on diagram element i.e. resize, drag or rotate the nodes and change the source and target point for connectors, propertyChange event gets triggered. In that event you can save the diagram for all actions performed in the diagram. Please refer below code snippet for how to use property change event 

propertyChange={(args) => { 
            propertyChanged() 
          }} 

function propertyChanged(args) { 
 save = diagramInstance.saveDiagram(); 
  

Regards 
Aravind Ravi 


Marked as answer
Loader.
Up arrow icon