Save diagram

Hi, do you have a full structure of a ejDiagram-JSON with all the attributes posible? I'm using EJ1.

1 Reply

SG Shyam G Syncfusion Team January 24, 2020 07:20 AM UTC

Hi Stheve, 

Please use diagram save method which returns serialized diagram JSON which contains all the diagram model properties/attributes. Please refer to a code example and the sample below. 

Code example: 
  function diagramSave() { 
        var diagram = $("#diagram").ejDiagram("instance"); 
        //return serialized json  
        var serializedData = diagram.save(); 
     




Regards, 
Shyam G 


Loader.
Up arrow icon