svghmi/widgets_common.ysl2
branchsvghmi
changeset 3232 7bdb766c2a4d
parent 3162 fbe1ffaa56cf
child 3233 315f17e74ef5
--- a/svghmi/widgets_common.ysl2	Thu Apr 15 09:15:23 2021 +0200
+++ b/svghmi/widgets_common.ysl2	Sun May 02 23:01:08 2021 +0200
@@ -21,6 +21,26 @@
     }
 };
 
+in xsl decl widget_class(%name, *clsname="%nameWidget", match="widget[@type='%name']", mode="widget_class") alias template {
+    | class `text **clsname` extends Widget{
+    content;
+    | }
+};
+
+in xsl decl widget_defs(%name, match="widget[@type='%name']", mode="widget_defs") alias template {
+    param "hmi_element";
+    content;
+};
+
+in xsl decl widget_page(%name, match="widget[@type='%name']", mode="widget_page") alias template {
+    param "page_desc";
+    content;
+};
+
+decl gen_index_xhtml alias - {
+    content;
+};
+
 template "svg:*", mode="hmi_widgets" {
     const "widget", "func:widget(@id)";
     const "eltid","@id";