waitData

eventual result of an asynchronous operation ('promise' object) for the loaded data

promise waitData;

Example

var grid = webix.ui({
    view:"datatable", //any data object
    url:"data.php",
});
 
grid.waitData.then(function(){
    // when we have data, do some actions
    grid.select(grid.getFirstId());
});

Details

The ultimate advantage of Promise objects is that they allow treating the result of asynchronous operations without callbacks.

See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix js framework and page of context menu product.