add error component

Signed-off-by: Tobias Erbshäußer <tobias@tesoft.dev>
This commit is contained in:
2026-05-24 09:22:47 +02:00
parent 60e4508431
commit c0919670ca
2 changed files with 59 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import {TesoftComponent} from "../scripts/main.ts";
export class TesoftError extends TesoftComponent {
constructor() {
super();
const template = document.getElementById("tesoft-error-template") as HTMLTemplateElement;
const templateContent = template.content;
const shadowRoot = this.attachShadow({mode: "open"});
shadowRoot.appendChild(templateContent.cloneNode(true));
}
}
customElements.define("tesoft-error", TesoftError);