Model in EJ 1 ASP.NET MVC Diagram

23 Sep 2020 / 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.

  • razor
  • //Creates diagram
      <div>
         @Html.EJ().Diagram("diagram").Width("100%").Height("100%").PageSettings(s=>s.PageWidth(2000).PageHeight(2000))
      </div>

    Model_img1

    To explore more model properties, refer to Model Properties.