edouard@2997: // widget_list.ysl2 edouard@3352: edouard@3241: widget_desc("List") { edouard@3352: longdesc edouard@3352: || edouard@3352: List widget is a svg:group, list items are labeled elements edouard@3352: in that group. edouard@3352: edouard@3352: To use a List, clone (svg:use) one of the items inside the widget that edouard@3352: expects a List. edouard@3352: edouard@3352: Positions of items are relative to each other, and they must all be in the edouard@3352: same place. In order to make editing easier it is therefore recommanded to edouard@3352: make stacked clones of svg elements spread nearby the list. edouard@3352: || edouard@3352: edouard@3352: shortdesc > A named list of named graphical elements edouard@3352: edouard@3352: arg name="listname" edouard@3241: } edouard@2997: edouard@3232: widget_defs("List") { edouard@2997: | items: { edouard@2997: foreach "$hmi_element/*[@inkscape:label]" { Edouard@3386: | "«@inkscape:label»": "«@id»", edouard@2997: } edouard@2997: | }, edouard@2997: } Edouard@3031: