svghmi/widget_input.ysl2
changeset 3706 39ae17a1cabe
parent 3536 4ee33be5b8b6
equal deleted inserted replaced
3704:c17fac18c663 3706:39ae17a1cabe
    90     }
    90     }
    91     |     },
    91     |     },
    92 
    92 
    93     if "$have_value" {
    93     if "$have_value" {
    94     |     animate: function(){
    94     |     animate: function(){
    95     |         this.value_elt.textContent = String(this.display);
    95     |         multiline_to_svg_text(this.value_elt, String(this.display));
    96     |     },
    96     |     },
    97     }
    97     }
    98 
    98 
    99     foreach "$action_elements" {
    99     foreach "$action_elements" {
   100     |     action_elt_«position()»: id("«@id»"),
   100     |     action_elt_«position()»: id("«@id»"),
   112     foreach "$action_elements" {
   112     foreach "$action_elements" {
   113     |         this.action_elt_«position()».onclick = () => this.on_op_click("«func:escape_quotes(@inkscape:label)»");
   113     |         this.action_elt_«position()».onclick = () => this.on_op_click("«func:escape_quotes(@inkscape:label)»");
   114     }
   114     }
   115 
   115 
   116     if "$have_value" {
   116     if "$have_value" {
   117     |         this.value_elt.textContent = "";
   117     |         multiline_to_svg_text(this.value_elt, "");
   118     }
   118     }
   119     |     },
   119     |     },
   120 }
   120 }