mapcomplete/UI/Base/VariableUIElement.ts

16 lines
362 B
TypeScript
Raw Normal View History

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