2020-06-24 00:35:19 +02:00
|
|
|
import {UIElement} from "../UIElement";
|
|
|
|
import {UIEventSource} from "../UIEventSource";
|
|
|
|
|
|
|
|
|
|
|
|
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'>";
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|