2020-06-24 00:35:19 +02:00
|
|
|
import {UIElement} from "../UIElement";
|
2020-08-17 17:23:15 +02:00
|
|
|
import {UIEventSource} from "../../Logic/UIEventSource";
|
2020-06-24 00:35:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
export class SimpleImageElement extends UIElement {
|
|
|
|
|
|
|
|
constructor(source: UIEventSource<string>) {
|
|
|
|
super(source);
|
|
|
|
}
|
|
|
|
|
2020-07-26 02:01:34 +02:00
|
|
|
InnerRender(): string {
|
2020-06-24 00:35:19 +02:00
|
|
|
return "<img src='" + this._source.data + "' alt='img'>";
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|