svghmi/widget_list.ysl2
author Edouard Tisserant
Tue, 20 Jul 2021 10:52:25 +0200
branchsvghmi
changeset 3285 d6612579f1d4
parent 3241 fe945f1f48b7
child 3320 9fe5b4a04acc
permissions -rw-r--r--
Runtime: more robust loading of Wamp config, specially in case config file was corrupted.
// widget_list.ysl2
widget_desc("List") {
    // TODO
}

widget_defs("List") {
    |     items: {
    foreach "$hmi_element/*[@inkscape:label]" {
    |         «@inkscape:label»: "«@id»",
    }
    |     },
}

widget_defs("TextStyleList") {
    // TODO
}

widget_defs("TextStyleList") {
    |     styles: {
    foreach "$hmi_element/*[@inkscape:label]" {
        const "style", "func:refered_elements(.)[self::svg:text]/@style";
    |         «@inkscape:label»: "«$style»",
    }
    |     },
}