svghmi/widget_jsontable.ysl2
branchsvghmi
changeset 3065 c369a742443d
parent 3048 d46d545ff7b7
child 3066 d7b9c2ceb3fb
equal deleted inserted replaced
3064:4b44d09c48a7 3065:c369a742443d
     1 // widget_jsontable.ysl2
     1 // widget_jsontable.ysl2
     2 
     2 
     3 template "widget[@type='JsonTable']", mode="widget_class"
     3 template "widget[@type='JsonTable']", mode="widget_class"
     4     ||
     4     ||
     5     class JsonTableWidget extends Widget{
     5     class JsonTableWidget extends Widget{
     6         cache = [];
     6         cache = [100,50];
     7         do_http_request(...opt) {
     7         do_http_request(...opt) {
     8             const query = {
     8             const query = {
     9                 args: this.args,
     9                 args: this.args,
    10                 vars: this.cache,
    10                 range: this.cache[1],
       
    11                 position: this.cache[2],
    11                 visible: this.visible,
    12                 visible: this.visible,
    12                 options: opt
    13                 options: opt
    13             };
    14             };
    14 
    15 
    15             const options = {
    16             const options = {