diff -r c325749651d1 -r 4b2de1a0fbf9 svghmi/gen_index_xhtml.xslt
--- a/svghmi/gen_index_xhtml.xslt Thu Nov 28 14:46:50 2024 +0100
+++ b/svghmi/gen_index_xhtml.xslt Mon Dec 02 11:33:19 2024 +0100
@@ -4816,6 +4816,76 @@
}
+
+
+
+
+
+ If Image widget is a svg:image element, then href content is replaced by
+
+ value of given variable.
+
+
+
+ Image display
+
+
+
+ class
+ ImageWidget
+ extends Widget{
+
+ frequency = 5;
+
+ dispatch(value, oldval, index) {
+
+ if (index == 0) {
+
+ this.given_url = value;
+
+ this.ready = true;
+
+ this.request_animate();
+
+ }
+
+ }
+
+ }
+
+
+
+
+
+
+
+
+ /disabled
+
+
+
+
+
+
+ given_url: "",
+
+ ready: false,
+
+ animate: function(){
+
+ this.element.setAttribute('href', this.given_url);
+
+ },
+
+
+
+ init: function() {
+
+ this.animate();
+
+ },
+
+
@@ -5042,7 +5112,7 @@
- Documentation to be written. see svghmi exemple.
+ Documentation to be written. see svghmi example.
@@ -5247,7 +5317,7 @@
- JsonTable : missplaced '=' or inconsistent names in Json data expressions.
+ JsonTable : misplaced '=' or inconsistent names in Json data expressions.
@@ -5320,7 +5390,7 @@
- Clones (svg:use) in JsonTable Widget pointing to a HMI:TextStyleList widget or item must have a "textContent=.someVal" assignement following value expression in label.
+ Clones (svg:use) in JsonTable Widget pointing to a HMI:TextStyleList widget or item must have a "textContent=.someVal" assignment following value expression in label.
{
@@ -5352,6 +5422,16 @@
+
+
+
+ id("
+
+ ").setAttribute('href', String(
+
+ ));
+
+
@@ -10142,8 +10222,6 @@
let widget = hmi_widgets[id];
- if(widget.curr_value != undefined) return;
-
widget.do_init();
});