Can anyone can help! How can I update the values in template.
https://snippet.webix.com/0aeu5e8k
Thanks
Can anyone can help! How can I update the values in template.
https://snippet.webix.com/0aeu5e8k
Thanks
Hi,
Webix widgets are pure javascript components, without any code preprocessing. So, they do not track the variable changes on their own. You need to call template’s API to provide the new values
https://snippet.webix.com/np1k6jx7
{ template: buttonView, id:"btn", data:{
iconV:icon[0],
textV:text[0],
}},
...
$$("btn").setValues({ iconV: icon[0], textV: text[0] })
or just call template.refresh()
to force the repainting
Thank you for your help, maksim