beremiz
Clone
Summary
Browse
Changes
Graph
SVGHMI: Deeper clone unlinking. Was actually not recursive, and clones in clones where not unlinked. Stack successive ids to avoid collisions.
svghmi
2020-08-15, Edouard Tisserant
d660b1b6bf4f
SVGHMI: Deeper clone unlinking. Was actually not recursive, and clones in clones where not unlinked. Stack successive ids to avoid collisions.
// 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»",
}
| },
}