equal
deleted
inserted
replaced
1 // widget_customhtml.ysl2 |
1 // widget_customhtml.ysl2 |
2 |
2 |
3 template "widget[@type='CustomHtml']", mode="widget_class"{ |
3 widget_class("CustomHtml"){ |
4 || |
4 || |
5 class CustomHtmlWidget extends Widget{ |
|
6 frequency = 5; |
5 frequency = 5; |
7 widget_size = undefined; |
6 widget_size = undefined; |
8 |
7 |
9 dispatch(value) { |
8 dispatch(value) { |
10 this.request_animate(); |
9 this.request_animate(); |
19 this.widget_size.x+'" y="'+this.widget_size.y+ |
18 this.widget_size.x+'" y="'+this.widget_size.y+ |
20 '" width="'+this.widget_size.width+'" height="'+this.widget_size.height+'"> '+ |
19 '" width="'+this.widget_size.width+'" height="'+this.widget_size.height+'"> '+ |
21 this.code_elt.textContent+ |
20 this.code_elt.textContent+ |
22 ' </foreignObject>'; |
21 ' </foreignObject>'; |
23 } |
22 } |
24 } |
|
25 || |
23 || |
26 } |
24 } |
27 |
25 |
28 |
26 |
29 template "widget[@type='CustomHtml']", mode="widget_defs" { |
27 widget_defs("CustomHtml") { |
30 param "hmi_element"; |
28 param "hmi_element"; |
31 labels("container code"); |
29 labels("container code"); |
32 |, |
|
33 } |
30 } |