iobroker-ucl 1.2.75 → 1.2.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/html.js +6 -0
- package/html.ts +11 -0
- package/package.json +1 -1
package/html.js
CHANGED
@@ -93,6 +93,9 @@ var HtmlCreator = /** @class */ (function () {
|
|
93
93
|
HtmlCreator.prototype.setAdditionalHTMLaboveTable = function (additionalHTMLaboveTable) {
|
94
94
|
this.additionalHTMLaboveTable = additionalHTMLaboveTable;
|
95
95
|
};
|
96
|
+
HtmlCreator.prototype.setAdditionalHTMLbelowTable = function (additionalHTMLbelowTable) {
|
97
|
+
this.additionalHTMLbelowTable = additionalHTMLbelowTable;
|
98
|
+
};
|
96
99
|
HtmlCreator.prototype.addSeparatorAfterObjectThick = function (separator) {
|
97
100
|
this.separatorRowAfterObjectThick.push(separator);
|
98
101
|
};
|
@@ -301,6 +304,9 @@ var HtmlCreator = /** @class */ (function () {
|
|
301
304
|
});
|
302
305
|
});
|
303
306
|
html += "</table>\n";
|
307
|
+
if (this.additionalHTMLbelowTable != null) {
|
308
|
+
html += this.additionalHTMLbelowTable + "<p>";
|
309
|
+
}
|
304
310
|
html += "</body>\n";
|
305
311
|
html += "</html>\n";
|
306
312
|
this.adapter.setState(this.htmlState, html);
|
package/html.ts
CHANGED
@@ -93,6 +93,7 @@
|
|
93
93
|
export class HtmlCreator {
|
94
94
|
private htmlState: string;
|
95
95
|
private additionalHTMLaboveTable: string;
|
96
|
+
private additionalHTMLbelowTable: string;
|
96
97
|
private backgroundImageUrl: string;
|
97
98
|
private tables: HtmlTable[];
|
98
99
|
private separatorRowAfterObjectThick: Object[];
|
@@ -118,6 +119,10 @@
|
|
118
119
|
public setAdditionalHTMLaboveTable(additionalHTMLaboveTable: string) {
|
119
120
|
this.additionalHTMLaboveTable = additionalHTMLaboveTable;
|
120
121
|
}
|
122
|
+
|
123
|
+
public setAdditionalHTMLbelowTable(additionalHTMLbelowTable: string) {
|
124
|
+
this.additionalHTMLbelowTable = additionalHTMLbelowTable;
|
125
|
+
}
|
121
126
|
|
122
127
|
public addSeparatorAfterObjectThick(separator: Object) {
|
123
128
|
this.separatorRowAfterObjectThick.push(separator);
|
@@ -365,6 +370,12 @@
|
|
365
370
|
|
366
371
|
|
367
372
|
html += "</table>\n";
|
373
|
+
|
374
|
+
if (this.additionalHTMLbelowTable != null) {
|
375
|
+
html += this.additionalHTMLbelowTable + "<p>";
|
376
|
+
}
|
377
|
+
|
378
|
+
|
368
379
|
html += "</body>\n";
|
369
380
|
html += "</html>\n";
|
370
381
|
this.adapter.setState(this.htmlState, html);
|