author | Edouard Tisserant <edouard.tisserant@gmail.com> |
Mon, 03 Aug 2020 16:32:23 +0200 | |
branch | svghmi |
changeset 3000 | a9a45977bac0 |
parent 2998 | e8f707d99dc3 |
child 3008 | dabad70db1bf |
permissions | -rw-r--r-- |
// widget_display.ysl2 template "widget[@type='Display']", mode="widget_class" || class DisplayWidget extends Widget{ frequency = 5; dispatch(value) { this.element.textContent = String(value); } } || template "widget[@type='Display']", mode="widget_defs" { param "hmi_element"; if "$hmi_element[not(self::svg:text)]" error > Display Widget id="«$hmi_element/@id»" is not a svg::text element }