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