svghmi/widget_jsontable.ysl2
branchsvghmi
changeset 3066 d7b9c2ceb3fb
parent 3065 c369a742443d
child 3069 a9b03c2634c5
equal deleted inserted replaced
3065:c369a742443d 3066:d7b9c2ceb3fb
   217     |     visible: «count($data_elt/*[@inkscape:label])»,
   217     |     visible: «count($data_elt/*[@inkscape:label])»,
   218     |     spread_json_data: function(janswer) {
   218     |     spread_json_data: function(janswer) {
   219     |         let [range,position,jdata] = janswer;
   219     |         let [range,position,jdata] = janswer;
   220     |         this.apply_hmi_value(1, range);
   220     |         this.apply_hmi_value(1, range);
   221     |         this.apply_hmi_value(2, position);
   221     |         this.apply_hmi_value(2, position);
       
   222     |         this.apply_hmi_value(3, this.visible);
   222     |         console.log(range,position,jdata);
   223     |         console.log(range,position,jdata);
   223     apply "$data_elt", mode="json_table_render_except_comments" {
   224     apply "$data_elt", mode="json_table_render_except_comments" {
   224         with "expressions","$initexpr_ns";
   225         with "expressions","$initexpr_ns";
   225         with "widget_elts","$hmi_element/*[@inkscape:label = 'data']/descendant::svg:*";
   226         with "widget_elts","$hmi_element/*[@inkscape:label = 'data']/descendant::svg:*";
   226     }
   227     }