I’m a JS and Webix newbie trying to pass session parameters object to a Webix component (“list” in this case) on the view’s load, but without result.
My code is:
var sessionParams = {
some object...
};
var myComp = {
id:"myComp",
type:"list",
template:"someComp"
};
...
webix.ready({
webix.ui(myComp); // This is an abbreviated code. I naturally initialize rows, cols etc.
$$("myComp").add(sessionParams); // I've also tried any possible event, but to no effect.
});
What am I doing wrong? The error messages vary from “The $$(”") function doesn’t exist" (from which I conclude the method doesn’t exist for a selected component) to no message at all.