Skip to content

waitData

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

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

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