Hi,
Lets say I am building an UI with several views components. Then I am going to populate and interact with them. However I need to wait that these components are ready (waiting for onBindRequest event for each view component if I have understood). Is there a mechanism to build all component views and have a unique event saying : “all views components are ready, you can start working with data and user interaction” ?
Thank you
Hi,
There’s no such event for the entire UI. Moreover, onBindRequest
is related only to the binding API. Depending on your use-case, you can use different events to check if the component is ready.
For example, to check whether all data was loaded, you can use promise API - webix.promise.all
andwaitData
:
webix.promise.all([
$$("datatableId").waitData,
$$("treeId").waitData
]).then(function(){
webix.message("all data components are ready");
});