svghmi/widget_list.ysl2
branchsvghmi
changeset 2997 2f298089e32e
child 3028 72ee99635db7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/svghmi/widget_list.ysl2	Wed Jul 22 13:56:43 2020 +0200
@@ -0,0 +1,10 @@
+// widget_list.ysl2
+
+template "widget[@type='List']", mode="widget_defs" {
+    param "hmi_element";
+    |     items: {
+    foreach "$hmi_element/*[@inkscape:label]" {
+    |         «func:escape_quotes(@inkscape:label)»: "«@id»",
+    }
+    |     },
+}