loads data to the component from an inline data source
data | promise|string|array|object | the data to add |
type | string | the data type: 'json' (default), 'xml', 'csv', 'jsarray' |
The data parameter has 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
});