svghmi/widget_dropdown.ysl2
branchsvghmi
changeset 3133 450cd01324ad
parent 3131 2d750e38a4c6
child 3232 7bdb766c2a4d
equal deleted inserted replaced
3132:a1e2eff0bc58 3133:450cd01324ad
   335 
   335 
   336 template "widget[@type='DropDown']", mode="widget_defs" {
   336 template "widget[@type='DropDown']", mode="widget_defs" {
   337     param "hmi_element";
   337     param "hmi_element";
   338     labels("text box button highlight");
   338     labels("text box button highlight");
   339     // It is assumed that list content conforms to Array interface.
   339     // It is assumed that list content conforms to Array interface.
   340 ||
   340     >   content:
   341     content: [
   341     choose{
   342     /* TODO : Support HMI:List */
   342         // special case when used for language selection
   343     ``foreach "arg" | "«@value»",
   343         when "count(arg) = 1 and arg[1]/@value = '#langs'" {
   344     ],
   344             > langs
   345 
   345         }
   346 ||
   346         otherwise {
       
   347             > [\n
       
   348             foreach "arg" | "«@value»",
       
   349             >   ]
       
   350         }
       
   351     }
       
   352     > ,\n
   347 }
   353 }