equal
deleted
inserted
replaced
1 // widget_customhtml.ysl2 |
1 // widget_customhtml.ysl2 |
|
2 |
|
3 widget_desc("CustomHtml") { |
|
4 longdesc |
|
5 || |
|
6 CustomHtml widget allows insertion of HTML code in a svg:foreignObject. |
|
7 Widget content is replaced by foreignObject. HTML code is obtained from |
|
8 "code" labeled text content. HTML insert position and size is given with |
|
9 "container" labeled element. |
|
10 || |
|
11 |
|
12 shortdesc > Custom HTML insert |
|
13 |
|
14 // TODO: support reload and POST based on variable content |
|
15 } |
2 |
16 |
3 widget_class("CustomHtml"){ |
17 widget_class("CustomHtml"){ |
4 || |
18 || |
5 frequency = 5; |
19 frequency = 5; |
6 widget_size = undefined; |
20 widget_size = undefined; |
23 || |
37 || |
24 } |
38 } |
25 |
39 |
26 |
40 |
27 widget_defs("CustomHtml") { |
41 widget_defs("CustomHtml") { |
28 param "hmi_element"; |
|
29 labels("container code"); |
42 labels("container code"); |
30 } |
43 } |