--- a/svghmi/widget_jsontable.ysl2 Tue Oct 20 00:23:52 2020 +0200
+++ b/svghmi/widget_jsontable.ysl2 Tue Oct 20 00:24:49 2020 +0200
@@ -3,11 +3,12 @@
template "widget[@type='JsonTable']", mode="widget_class"
||
class JsonTableWidget extends Widget{
- cache = [];
+ cache = [100,50];
do_http_request(...opt) {
const query = {
args: this.args,
- vars: this.cache,
+ range: this.cache[1],
+ position: this.cache[2],
visible: this.visible,
options: opt
};
@@ -218,6 +219,7 @@
| let [range,position,jdata] = janswer;
| this.apply_hmi_value(1, range);
| this.apply_hmi_value(2, position);
+ | this.apply_hmi_value(3, this.visible);
| console.log(range,position,jdata);
apply "$data_elt", mode="json_table_render_except_comments" {
with "expressions","$initexpr_ns";