loads data to the component from an inline data source
| data |
webix.ui({
id:"data",
view:"dataview",
...
});
var str = "<data><item id='1'><title>The Lord of the Rings</title>"+
"<year>2003</year></item>" +
"<item id='2'><title>Star Wars: Episode V</title>"+
"<year>1980</year></item></data>";
$$("data").parse(str,"xml");
The data parameter can have the following types:
If you want to parse data in addition to the existing dataset, specify position of parsing, namely the index from which you insert new data:
$$("datatable").parse({
// the number of records will be equal to the last index plus 1
pos: $$("datatable").count(),
data:dataset
});