svghmi/widget_list.ysl2
author Edouard Tisserant <edouard.tisserant@gmail.com>
Sat, 15 Aug 2020 18:50:25 +0200
branchsvghmi
changeset 3028 72ee99635db7
parent 2997 2f298089e32e
child 3031 440d74319a74
permissions -rw-r--r--
SVGHMI: HMI:JsonTable also recognize TextStyleList, but parsing of textContent is still not implemented and style is still not updated.
// widget_list.ysl2

template "widget[@type='List' or @type='TextStyleList']", mode="widget_defs" {
    param "hmi_element";
    |     items: {
    foreach "$hmi_element/*[@inkscape:label]" {
    |         «func:escape_quotes(@inkscape:label)»: "«@id»",
    }
    |     },
}