15 lines
No EOL
334 B
TypeScript
15 lines
No EOL
334 B
TypeScript
import {UIElement} from "../UIElement";
|
|
import {UIEventSource} from "../UIEventSource";
|
|
|
|
|
|
export class SimpleImageElement extends UIElement {
|
|
|
|
constructor(source: UIEventSource<string>) {
|
|
super(source);
|
|
}
|
|
|
|
protected InnerRender(): string {
|
|
return "<img src='" + this._source.data + "' alt='img'>";
|
|
}
|
|
|
|
} |