parse

loads data to the component from an inline data source

void parse(promise|string|array|object data);
datapromise|string|array|objectthe data to parse

Example

webix.ui({
    view:"diagram",
    id: "diagram1",
});
$$("diagram1").parse([
    { id: "start", type: "circle", value: "start", x: 0, y: 80},
    // other blocks
]);

Related samples

Details

The data parameter can have the following types:

  • data promise (object)
  • inline data:
    • JSON array
    • XML string
    • JSON object with full data (from Diagram Editor)

If the data comes from Diagram Editor, it has several fields as returned by its getValues() method.

See also
Back to top