Passing data to components on load

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.

Hello,

To instantiate a widget, you should provide its name as view property, not type. Please, check the snippet: https://webix.com/snippet/3aae411d

Dear Helga,
of course! Thank you so much!