mapcomplete/UI/Base/VariableUIElement.ts

16 lines
362 B
TypeScript
Raw Normal View History

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