diff -r c113904f0e62 -r d46d545ff7b7 svghmi/gen_index_xhtml.xslt
--- a/svghmi/gen_index_xhtml.xslt Fri Aug 28 11:31:18 2020 +0200
+++ b/svghmi/gen_index_xhtml.xslt Fri Aug 28 15:29:35 2020 +0200
@@ -3467,7 +3467,7 @@
cache = [];
- do_http_request() {
+ do_http_request(...opt) {
const query = {
@@ -3475,7 +3475,9 @@
vars: this.cache,
- visible: this.visible
+ visible: this.visible,
+
+ options: opt
};
@@ -3511,15 +3513,9 @@
}
- on_click(evt) {
-
- this.do_http_request();
-
- }
-
- init() {
-
- this.element.setAttribute("onclick", "hmi_widgets['"+this.element_id+"'].on_click(evt)");
+ on_click(evt, ...options) {
+
+ this.do_http_request(...options);
}
@@ -3705,8 +3701,20 @@
+
+
+
+ id("
+
+ ").setAttribute("onclick", "hmi_widgets['"+this.element_id+"'].on_click(evt, '
+
+ ', '"+
+
+ +"')");
+
+
-
+