I’m building an analytical dashboard and need to embed into separate widgets dynamically generated images. Optimally, I would like to display a
My question is: what is the cleanest and the most webix-conformant way to do this? I cannot use any flat data view (such as view: “template” etc.), as I need to feed it with a JS object which preserves methods etc. (and those seem to get lost when passed to the view: “template” & co. or when stored in the storage.local).
As for now, I didn’t manage to display anything: the
// high-level view (prepares data, incl. ajax requests etc.)
let store = new webix.DataCollection({
data: {session:ajax_request.session} //session object with methods etc.
});
$$("plot").data.sync(store);
// low-lewel view which is supposed to inherit from the high-level one
{
view: "dataview",
id: "plot",
template: function(dataObj) { //read-in from the store
let location = ... ; // some magic here
return '<div><img src="' + location + '"></img></div>';
}
}