equal
deleted
inserted
replaced
|
1 // widget_textlist.ysl2 |
|
2 |
|
3 widget_desc("TextList") { |
|
4 longdesc |
|
5 || |
|
6 TextList widget is a svg:group, list items are labeled elements |
|
7 in that group. |
|
8 |
|
9 To use a TextList, clone (svg:use) one of the items inside the widget |
|
10 that expects a TextList. |
|
11 |
|
12 In this list, (translated) text content is what matters. Nevertheless |
|
13 text style of the cloned item will be applied in client widget. |
|
14 || |
|
15 |
|
16 shortdesc > A named list of ordered texts |
|
17 |
|
18 arg name="listname" |
|
19 } |
|
20 |
|
21 widget_defs("TextList") { |
|
22 | texts: [ |
|
23 foreach "func:refered_elements($hmi_element/*[@inkscape:label])[self::svg:text]" { |
|
24 | id("«@id»"), |
|
25 } |
|
26 // could find a proper way in xpath to reverse() |
|
27 | ].reverse(), |
|
28 } |