Molodetz blogrol volgens DPP-template
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// retoor <retoor@molodetz.nl>
|
||||
export class Component extends HTMLElement {
|
||||
static tag = "";
|
||||
|
||||
static define() {
|
||||
if (this.tag && !customElements.get(this.tag)) {
|
||||
customElements.define(this.tag, this);
|
||||
}
|
||||
}
|
||||
|
||||
emit(name, detail = {}) {
|
||||
this.dispatchEvent(new CustomEvent(name, { detail, bubbles: true, composed: true }));
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
if (!this.dataset.ready) {
|
||||
this.dataset.ready = "1";
|
||||
this.setup();
|
||||
}
|
||||
}
|
||||
|
||||
setup() {}
|
||||
}
|
||||
Reference in New Issue
Block a user