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

What is the meaning to this line

var dropDownObj = $('#list').ejDropDownList("instance");
var diagram = $('#myDiagram').ejDiagram("model");

Hello, when looking at the MVC doc, I fell a couple time on parts where you interact directly in javascript such as this line.
Sometimes, we pass ("instance"), sometimes it's ("model").

I've searched through the online doc but can't find info on these parameters, could somebody explain to me ? Or point to any resources that could help me understand

Thank you in advance

1 Reply

SG Shyam G Syncfusion Team May 16, 2017 07:03 AM UTC

Hi Jonathan, 
 
Query 
Response 
var diagram = $('#myDiagram').ejDiagram("instance"); 
 
It returns the diagram objects which has public API methods and the diagram model properties. 
var diagram = $('#myDiagram').ejDiagram("model"); 
It returns the diagram’s model properties alone. 
 
 
Regards, 
Shyam G 


Loader.
Up arrow icon