mapcomplete/UI/Base/VariableUIElement.ts
2020-09-12 23:15:17 +02:00

16 lines
No EOL
362 B
TypeScript

import {UIElement} from "../UIElement";
import {UIEventSource} from "../../Logic/UIEventSource";
export class VariableUiElement extends UIElement {
private _html: UIEventSource<string>;
constructor(html: UIEventSource<string>) {
super(html);
this._html = html;
}
InnerRender(): string {
return this._html.data;
}
}