Hi, I am trying to develop a new app using Webix and Webix Jet, but I encountered some questions in coding.
What I would like to do is:
- A page which will make 1 API call to get the data used in that page.
- Use MVVM pattern, so that changes made to the bound data will be reflected to the UI.
I made the following code
https://webix.com/snippet/6a90d0b2
It work perfectly now, but what I am not satisfied is that:
- Labels are set after data loading, and is not bound to any view model. It seems that I can use webix.DataRecord but I cannot find an example on how to bind a property in a webix.DataRecord.
- To avoid making multiple HTTP requests to retrieve the same set of data, webix.ajax() is used. In Webix Jet, each file in “sources/models” folder should represent a type of data with the respective API endpoint as data source. In our single API however, is returning multiple types of data. I am not sure how to properly implement this in Webix Jet in an organized way because all the examples in the document at Page not found - Webix Jet are returning 1 type of data per API, and we are unable to use Webix Remote because our backend is written in Java.
I hope somebody can give me some advises or point me to the right documentation so that I can further study on the implementation approach. Thanks.