svghmi/widget_jsontable.ysl2
branchsvghmi
changeset 3187 ba8ff21fd82b
parent 3181 50d0fef791d5
child 3189 0733114a2090
equal deleted inserted replaced
3186:1e9b9d7451cd 3187:ba8ff21fd82b
     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         // arbitrary defaults to avoid missing entries in query
     6         // arbitrary defaults to avoid missing entries in query
     7         cache = [0,100,50];
     7         cache = [0,0,0];
     8         init_common() {
     8         init_common() {
     9             this.spread_json_data_bound = this.spread_json_data.bind(this);
     9             this.spread_json_data_bound = this.spread_json_data.bind(this);
    10             this.handle_http_response_bound = this.handle_http_response.bind(this);
    10             this.handle_http_response_bound = this.handle_http_response.bind(this);
    11             this.fetch_error_bound = this.fetch_error.bind(this);
    11             this.fetch_error_bound = this.fetch_error.bind(this);
    12             this.promised = false;
    12             this.promised = false;