edouard@3322: // widget_textlist.ysl2 edouard@3322: edouard@3322: widget_desc("TextList") { edouard@3322: longdesc edouard@3322: || edouard@3322: TextList widget is a svg:group, list items are labeled elements edouard@3322: in that group. edouard@3322: edouard@3322: To use a TextList, clone (svg:use) one of the items inside the widget edouard@3322: that expects a TextList. edouard@3322: edouard@3322: In this list, (translated) text content is what matters. Nevertheless edouard@3322: text style of the cloned item will be applied in client widget. edouard@3322: || edouard@3322: edouard@3322: shortdesc > A named list of ordered texts edouard@3322: edouard@3322: arg name="listname" edouard@3322: } edouard@3322: edouard@3322: widget_defs("TextList") { edouard@3322: | texts: [ edouard@3322: foreach "func:refered_elements($hmi_element/*[@inkscape:label])[self::svg:text]" { edouard@3322: | id("«@id»"), edouard@3322: } edouard@3322: // could find a proper way in xpath to reverse() edouard@3322: | ].reverse(), edouard@3322: }