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