I have a Webix list and want to load data dynamically. The problem is that the data is under the results.entries
key in the JSON object returned by the AJAX call. How should I load that data?
So far what I came up with is slightly convoluted:
var result = webix.ajax().sync().get('/my-rest-endpoint');
$$('mylist').parse(JSON.parse(result.responseText).results.entries);
With sync() method, callback is synchronous. But I recomended to you if your '/my-rest-endpoint' has a waiting time to be generated, use ajax async() method, like this example
Regards