parse

loads data to the component from an inline data source

void parse(promise|string|array|object data);
data
promise|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:

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

See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.