svghmi/widget_input.ysl2
branchsvghmi
changeset 3233 315f17e74ef5
parent 3232 7bdb766c2a4d
child 3241 fe945f1f48b7
--- a/svghmi/widget_input.ysl2	Sun May 02 23:01:08 2021 +0200
+++ b/svghmi/widget_input.ysl2	Sun May 02 23:15:23 2021 +0200
@@ -1,8 +1,21 @@
 // widget_input.ysl2
 
+widget_desc("Input") {
+    longdesc
+    || 
+    Input widget takes one variable path, and displays current value in
+    optional "value" labeled sub-element. Click on optional "edit" labeled
+    element opens keypad to edit value. Operation on current value is
+    performed when click on sub-elements with label starting with '=', '+' 
+    or '-' sign. Value after sign is used as operand.
+    ||
 
+    shortdesc > Input field with predefined operation buttons
 
+    arg accepts="string" > optional printf-like format 
 
+    path accepts="HMI_INT, HMI_REAL, HMI_STRING" > single variable to edit
+    
 }
 
 widget_class("Input")