onParse

fires when data are ready to be processed by the component

void onParse(object driver,object data){ ... };

Parameters

driverobjectthe data driver (some from webix.DataDriver collection)
dataobjectthe data object, for json - a raw json object, for xml - an xml document object

Example

view.data.attachEvent("onParse", function(driver, data){
    //for json data
    webix.message("Count of records "+data.length);
});

Details

An alternative way of applying this event is to use the "data->" prefix in the handler.

view.attachEvent("data->onParse", function(driver, data){
    //for json data
    webix.message("Count of records "+data.length);
});

The event can be used to preprocess data (but a better way is to use the scheme method). It is also a good way to read some extra attributes from incoming data.

See also
Back to top