svghmi/widgets_common.ysl2
branchsvghmi
changeset 2954 b5dccd0d99ac
parent 2951 506fe9272660
child 2955 64e603b84aa3
equal deleted inserted replaced
2953:15bebe9a2806 2954:b5dccd0d99ac
    36         }
    36         }
    37     }
    37     }
    38 
    38 
    39     |   "«@id»": new «$widget/@type»Widget ("«@id»",[«$args»],[«$indexes»],{
    39     |   "«@id»": new «$widget/@type»Widget ("«@id»",[«$args»],[«$indexes»],{
    40     apply "$widget", mode="widget_defs" with "hmi_element",".";
    40     apply "$widget", mode="widget_defs" with "hmi_element",".";
    41     apply "$widget", mode="widget_subscribe" with "hmi_element",".";
       
    42     |   })`if "position()!=last()" > ,`
    41     |   })`if "position()!=last()" > ,`
    43 }
    42 }
    44 
    43 
    45 def "func:unique_types" {
    44 def "func:unique_types" {
    46     param "elts_with_type";
    45     param "elts_with_type";
   122     | var hmi_widgets = {
   121     | var hmi_widgets = {
   123     apply "$hmi_elements", mode="hmi_elements";
   122     apply "$hmi_elements", mode="hmi_elements";
   124     | }
   123     | }
   125 }
   124 }
   126 
   125 
   127 
       
   128 // default : normal subscribing
       
   129 template "widget", mode="widget_subscribe" {
       
   130 }
       
   131 // page aren't subscribers
       
   132 template "widget[@type='Page']", mode="widget_subscribe";
       
   133 
       
   134 function "defs_by_labels" {
   126 function "defs_by_labels" {
   135     param "labels","''";
   127     param "labels","''";
   136     param "mandatory","'yes'";
   128     param "mandatory","'yes'";
   137     param "subelements","/..";
   129     param "subelements","/..";
   138     param "hmi_element";
   130     param "hmi_element";