I have been trying to follow this guide: http://developers-club.com/posts/256505/
I simply cannot figure out why the $$("myList").refresh() is not working ? Am a complete newbie to webix and can use some help please.
my code is here: http://sahanaya.net/webix/webix2.html
{view:"tree", id:"myTree", data:recordsData, select: oceanData, on: {
onSelectChange: function(){
selected = $$("myTree").getSelectedId();
if (isNaN(selected)) {
$$("myList").clearAll();
$$("myList").define("data", selected);
$$("myList").refresh(); <-- THIS DOES NOT WORK ??
coverPath = "imgs/" + selected + ".jpg"
$$("myCover").define("data", { src: coverPath });
}
}
}