Model
28 Jun 2017 / 1 minute to read
The Diagram model represents the data to render the Diagram and to manipulate the Diagram elements. The following code illustrates how to define Diagram model.
//Creates diagram
<div ng-controller="diagramCtrl">
<div>
<ej-diagram id="diagram" e-width="100%" e-height="600px" e-pagesettings-pageWidth="pageSettings.pageWidth"
e-pagesettings-pageHeight="pageSettings.pageHeight">
</ej-diagram>
</div>
</div>
syncApp.controller('diagramCtrl', function($scope) {
$scope.pageSettings = {
pageWidth: 2000,
pageHeight: 2000,
};
});
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page