svghmi/widget_list.ysl2
author Edouard Tisserant
Thu, 13 Aug 2020 11:30:18 +0200
branchsvghmi
changeset 3025 48e7e336c052
parent 2997 2f298089e32e
child 3028 72ee99635db7
permissions -rw-r--r--
SVGHMI: HMI:VarInit:"a string"@a_value : empty widget (i.e. empty svg:group) that initialize content of local variables to value given as first argument.
// widget_list.ysl2

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