svghmi/widget_jump.ysl2
branchsvghmi
changeset 3232 7bdb766c2a4d
parent 3107 ee0704cc6dc8
child 3241 fe945f1f48b7
--- a/svghmi/widget_jump.ysl2	Thu Apr 15 09:15:23 2021 +0200
+++ b/svghmi/widget_jump.ysl2	Sun May 02 23:01:08 2021 +0200
@@ -1,9 +1,7 @@
 // widget_jump.ysl2
 
-template "widget[@type='Jump']", mode="widget_class"{
+widget_class("Jump") {
 ||
-    class JumpWidget extends Widget{
-
         activable = false;
         active = false;
         disabled = false;
@@ -58,11 +56,10 @@
               this.update_activity();
             }
         }
-    }
 ||
 }
 
-template "widget[@type='Jump']", mode="widget_defs" {
+widget_defs("Jump") {
     param "hmi_element";
     const "activity" optional_labels("active inactive");
     const "have_activity","string-length($activity)>0";
@@ -90,7 +87,7 @@
     |     },
 }
 
-template "widget[@type='Jump']", mode="per_page_widget_template"{
+widget_page("Jump"){
     param "page_desc";
     /* check that given path is compatible with page's reference path */
     if "path" {