svghmi/widget_list.ysl2
author Edouard Tisserant
Thu, 20 Aug 2020 13:52:00 +0200
branchsvghmi
changeset 3030 2d13a4379e2f
parent 3028 72ee99635db7
child 3031 440d74319a74
permissions -rw-r--r--
SVGHMI: Fix again clone unlinking, and this time add an "original" attribute to track the id of the original object before unlinking.
// 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»",
    }
    |     },
}