loads data to the component from an inline data source

void parse(string|array|object data,string type, [boolean clear] );
datastring|array|objectthe data to add
typestringthe data type: 'json' (default), 'xml', 'csv', 'jsarray'
clearbooleanif true, the current data are erased before new data are parsed


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>"+

Related samples


The data parameter can have the following types:

  • object with a branch to parse data in
  • object of another data component
  • inline data:
    • array
    • string.

To parse data into an existing branch, pass an object with the parent and data fields as a parameter of the method:

  parent: 2,
  data: [/* data */]

Data will be passed into the branch with id of 2.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix javascript ui components library and page of tree table product.