data

data source for Diagram Editor blocks

string|array data;

Example

webix.ui({
  view:"diagram-editor",
  data: [     { id: "n1", x: 800, y: 320 },
  ],
  links: [
    { source:"n1", target:"n2" }, 
  ],
  // other configuration
});

Details

The property expects a JSON array or an XML string to load data from. If the data comes in the XML format you need to define the datatype property passing "xml" as its value.

webix.ui({
  view:"diagram-editor",
  datatype: "xml",   data: "remote/data.xml", 
  // ...
});

Read more on how to configure blocks in the dedicated article.

See also
Back to top