2020-06-29 03:12:44 +02:00
|
|
|
import {UIElement} from "../UIElement";
|
2020-08-17 17:23:15 +02:00
|
|
|
import {UIEventSource} from "../../Logic/UIEventSource";
|
2020-06-25 03:39:31 +02:00
|
|
|
|
|
|
|
export class VariableUiElement extends UIElement {
|
|
|
|
private _html: UIEventSource<string>;
|
|
|
|
|
2020-09-12 23:15:17 +02:00
|
|
|
constructor(html: UIEventSource<string>) {
|
2020-06-25 03:39:31 +02:00
|
|
|
super(html);
|
|
|
|
this._html = html;
|
|
|
|
}
|
|
|
|
|
2020-07-20 18:24:00 +02:00
|
|
|
InnerRender(): string {
|
2020-06-25 03:39:31 +02:00
|
|
|
return this._html.data;
|
|
|
|
}
|
2020-08-22 18:57:27 +02:00
|
|
|
|
2020-06-25 03:39:31 +02:00
|
|
|
}
|