parse

loads data to the component from an inline data source

void parse(promise|string|array|object data,string type);

Parameters

datapromise|string|array|objectthe data to add
typestringthe data type: 'json' (default), 'xml', 'csv', 'jsarray'

Related samples

Details

The data parameter has the following types:

  • data promise (object),
  • object of an other data component,
  • inline data:
    • array
    • string

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
});
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix ui widget library and page of javascript tree widget product.