svghmi/widget_list.ysl2
branchsvghmi
changeset 3232 7bdb766c2a4d
parent 3185 9038655c1b18
child 3241 fe945f1f48b7
--- a/svghmi/widget_list.ysl2	Thu Apr 15 09:15:23 2021 +0200
+++ b/svghmi/widget_list.ysl2	Sun May 02 23:01:08 2021 +0200
@@ -1,6 +1,6 @@
 // widget_list.ysl2
 
-template "widget[@type='List']", mode="widget_defs" {
+widget_defs("List") {
     param "hmi_element";
     |     items: {
     foreach "$hmi_element/*[@inkscape:label]" {
@@ -9,7 +9,7 @@
     |     },
 }
 
-template "widget[@type='TextStyleList']", mode="widget_defs" {
+widget_defs("TextStyleList") {
     param "hmi_element";
     |     styles: {
     foreach "$hmi_element/*[@inkscape:label]" {