--- a/svghmi/widget_input.ysl2 Wed Jul 06 10:39:11 2022 +0200
+++ b/svghmi/widget_input.ysl2 Fri Jul 08 11:58:10 2022 +0200
@@ -65,6 +65,8 @@
const "have_edit","string-length($edit_elt)>0";
+ const "action_elements", "$hmi_element/*[regexp:test(@inkscape:label,'^[=+\-].+')]"; | dispatch: function(value) {
@@ -94,6 +96,9 @@
+ foreach "$action_elements" { + | action_elt_«position()»: id("«@id»"), @@ -104,8 +109,8 @@
- foreach "$hmi_element/*[regexp:test(@inkscape:label,'^[=+\-].+')]" {
- | id("«@id»").onclick = () => this.on_op_click("«func:escape_quotes(@inkscape:label)»");
+ foreach "$action_elements" { + | this.action_elt_«position()».onclick = () => this.on_op_click("«func:escape_quotes(@inkscape:label)»");