data source for Diagram Editor blocks
webix.ui({
view:"diagram-editor",
data: [ { id: "n1", x: 800, y: 320 },
],
links: [
{ source:"n1", target:"n2" },
],
// other configuration
});
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.