edouard@2883: // widget_display.ysl2 Edouard@2792: Edouard@2790: edouard@2883: template "widget[@type='Display']", mode="widget_defs" { edouard@2883: param "hmi_element"; edouard@2883: | frequency: 5, edouard@2883: | dispatch: function(value) { edouard@2883: choose { edouard@2883: when "$hmi_element[self::svg:text]"{ edouard@2883: // TODO : care about ? edouard@2883: | this.element.textContent = String(value); edouard@2883: } edouard@2883: otherwise { edouard@2883: warning > Display widget as a group not implemented Edouard@2792: } Edouard@2792: } edouard@2883: | }, Edouard@2792: Edouard@2753: }