Hi. I use a image template in my form (cogsform):
{
view:"imageLabel", name:"thumbnail"
},
On Button click I want to fill the template.
$$("cogsform").setValues({
"imageLabel": {
"thumbnail":"ups"
}
});
My template is:
webix.protoUI({
name:"imageLabel",
setValue:function(value){
this.setHTML("<img style='width:35px;' src='http://goo.gl/"+value+"'></img>")
}
}, webix.ui.label);
But the button click just empty my form and will not set any value to my template.
Any idea?