mapcomplete/UI/VariableUIElement.ts
2020-06-25 03:39:31 +02:00

17 lines
No EOL
362 B
TypeScript

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