svghmi/detachable_pages.ysl2
branchsvghmi
changeset 2903 881d0248b3ce
parent 2901 3f5194bba67d
child 2904 92d115d8828d
--- a/svghmi/detachable_pages.ysl2	Thu Mar 26 14:21:52 2020 +0100
+++ b/svghmi/detachable_pages.ysl2	Fri Mar 27 14:25:24 2020 +0100
@@ -131,11 +131,20 @@
     |         hmi_widgets["«@id»"]`if "position()!=last()" > ,`
     }
     |     ],
+    |     jumps: [
+    foreach "$parsed_widgets/widget[@id = $all_page_widgets/@id and @type='Jump']" {
+        const "_id","@id";
+        const "opts" call "jump_widget_activity" with "hmi_element", "$hmi_elements[@id=$_id]";
+        if "string-length($opts)>0"
+    |         hmi_widgets["«@id»"]`if "position()!=last()" > ,`
+    }
+    |     ],
     |     required_detachables: {
     foreach "$required_detachables" {
     |         "«@id»": detachable_elements["«@id»"]`if "position()!=last()" > ,`
     }
     |     }
+    /* TODO generate some code for init() instead */
     apply "$parsed_widgets/widget[@id = $all_page_widgets/@id]", mode="per_page_widget_template"{
         with "page_desc", "$desc";
     }