// widget_customhtml.ysl2
template "widget[@type='CustomHtml']", mode="widget_class"{
||
class CustomHtmlWidget extends Widget{
frequency = 5;
widget_size = undefined;
dispatch(value) {
this.request_animate();
}
animate(){
}
init() {
this.widget_size = this.container_elt.getBBox();
this.element.innerHTML =' '+
this.code_elt.textContent+
' ';
}
}
||
}
template "widget[@type='CustomHtml']", mode="widget_defs" {
param "hmi_element";
labels("container code");
|,
}