diff --git a/frontend/src/modules/Gefest/primitives/img.ts b/frontend/src/modules/Gefest/primitives/img.ts new file mode 100644 index 0000000..6398502 --- /dev/null +++ b/frontend/src/modules/Gefest/primitives/img.ts @@ -0,0 +1,13 @@ +import { GefestElement } from "../element"; + +export class GefestImg extends GefestElement { + constructor(content : (GefestElement | string)[] | string, src: string) { + super(content); + this.setAttribute('src', src); + } + + protected wrapHTML (content: string): string { + const attrString = this.attributesToString(); + return `${content}`; + } +} \ No newline at end of file