mapcomplete/UI/Image/SimpleImageElement.ts
2020-08-17 17:23:15 +02:00

15 lines
No EOL
333 B
TypeScript

import {UIElement} from "../UIElement";
import {UIEventSource} from "../../Logic/UIEventSource";
export class SimpleImageElement extends UIElement {
constructor(source: UIEventSource<string>) {
super(source);
}
InnerRender(): string {
return "<img src='" + this._source.data + "' alt='img'>";
}
}