svghmi/widget_tooglebutton.ysl2
branchsvghmi
changeset 3241 fe945f1f48b7
parent 3232 7bdb766c2a4d
child 3478 c04c6db09eff
--- a/svghmi/widget_tooglebutton.ysl2	Mon May 03 00:14:38 2021 +0200
+++ b/svghmi/widget_tooglebutton.ysl2	Tue May 18 09:22:17 2021 +0200
@@ -1,6 +1,20 @@
 // widget_tooglebutton.ysl2
 
 
+widget_desc("ToggleButton") {
+    longdesc
+    ||
+    Button widget takes one boolean variable path, and reflect current true
+    or false value by showing "active" or "inactive" labeled element
+    respectively. Clicking or touching button toggles variable.
+    ||
+
+    shortdesc > Toggle button reflecting given boolean variable
+
+    path name="value" accepts="HMI_BOOL" > Boolean variable
+    
+}
+
 widget_class("ToggleButton") {
     ||
         frequency = 5;
@@ -44,6 +58,5 @@
 }
 
 widget_defs("ToggleButton") {
-    param "hmi_element";
     optional_labels("active inactive");
 }