svghmi/widget_input.ysl2
branchsvghmi
changeset 3233 315f17e74ef5
parent 3232 7bdb766c2a4d
child 3241 fe945f1f48b7
equal deleted inserted replaced
3232:7bdb766c2a4d 3233:315f17e74ef5
     1 // widget_input.ysl2
     1 // widget_input.ysl2
     2 
     2 
       
     3 widget_desc("Input") {
       
     4     longdesc
       
     5     || 
       
     6     Input widget takes one variable path, and displays current value in
       
     7     optional "value" labeled sub-element. Click on optional "edit" labeled
       
     8     element opens keypad to edit value. Operation on current value is
       
     9     performed when click on sub-elements with label starting with '=', '+' 
       
    10     or '-' sign. Value after sign is used as operand.
       
    11     ||
     3 
    12 
       
    13     shortdesc > Input field with predefined operation buttons
     4 
    14 
       
    15     arg accepts="string" > optional printf-like format 
     5 
    16 
       
    17     path accepts="HMI_INT, HMI_REAL, HMI_STRING" > single variable to edit
       
    18     
     6 }
    19 }
     7 
    20 
     8 widget_class("Input")
    21 widget_class("Input")
     9 ||
    22 ||
    10      on_op_click(opstr) {
    23      on_op_click(opstr) {