svghmi/widget_list.ysl2
author Edouard Tisserant
Fri, 11 Jun 2021 11:56:07 +0200
branchsvghmi
changeset 3256 8d1cc99a8f54
parent 3241 fe945f1f48b7
child 3320 9fe5b4a04acc
permissions -rw-r--r--
IDE: Log: Prevent crash when display progress on empty log.
// 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»",
    }
    |     },
}