svghmi/widget_keypad.ysl2
branchsvghmi
changeset 2941 ef13a4007538
parent 2920 3ee337c8c769
child 2943 304e88bae115
equal deleted inserted replaced
2940:034b6ce4f885 2941:ef13a4007538
     1 // widget_keypad.ysl2
     1 // widget_keypad.ysl2
       
     2 
       
     3 emit "epilogue:keypad" {
       
     4     |
       
     5     | var keypads = {
       
     6     foreach "$keypads_descs"{
       
     7         const "keypad_id","@id";
       
     8         foreach "arg"{
       
     9             const "g", "$geometry[@Id = $keypad_id]";
       
    10     |     "«@value»":["«$keypad_id»", «$g/@x», «$g/@y»],
       
    11         }
       
    12     }
       
    13     | }
       
    14 }
     2 
    15 
     3 template "widget[@type='Keypad']", mode="widget_defs" {
    16 template "widget[@type='Keypad']", mode="widget_defs" {
     4     param "hmi_element";
    17     param "hmi_element";
     5     labels("Esc Enter BackSpace Keys Info Value");
    18     labels("Esc Enter BackSpace Keys Info Value");
     6     optional_labels("Sign Space NumDot");
    19     optional_labels("Sign Space NumDot");