svghmi/widget_customhtml.ysl2
branchsvghmi
changeset 3232 7bdb766c2a4d
parent 3064 4b44d09c48a7
child 3241 fe945f1f48b7
--- a/svghmi/widget_customhtml.ysl2	Thu Apr 15 09:15:23 2021 +0200
+++ b/svghmi/widget_customhtml.ysl2	Sun May 02 23:01:08 2021 +0200
@@ -1,8 +1,7 @@
 // widget_customhtml.ysl2
 
-template "widget[@type='CustomHtml']", mode="widget_class"{
+widget_class("CustomHtml"){
     ||
-    class CustomHtmlWidget extends Widget{
         frequency = 5;
         widget_size = undefined;
 
@@ -21,13 +20,11 @@
                 this.code_elt.textContent+
                 ' </foreignObject>';
         }
-    }
     ||
 }
 
 
-template "widget[@type='CustomHtml']", mode="widget_defs" {
+widget_defs("CustomHtml") {
     param "hmi_element";
     labels("container code");
-    |,
 }