beremiz
Clone
Summary
Browse
Changes
Graph
py_ext: CSV Writer output FB interface: ERROR and RESULT are valid when ACK is TRUE.
py2compat
18 months ago, Edouard Tisserant
2a10e3e6d068
py_ext: CSV Writer output FB interface: ERROR and RESULT are valid when ACK is TRUE.
+ updated svghmi_csv_json_img_table accordingly
// widget_image.ysl2
widget_desc("Image") {
longdesc
||
If Image widget is a svg:image element, then href content is replaced by
value of given variable.
||
shortdesc > Image display
}
widget_class("Image")
||
frequency = 5;
dispatch(value, oldval, index) {
if (index == 0) {
this.given_url = value;
this.ready = true;
this.request_animate();
}
}
||
widget_defs("Image") {
| given_url: "",
| ready: false,
| animate: function(){
| this.element.setAttribute('href', this.given_url);
| },
|
| init: function() {
| this.animate();
| },
}