mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-07-02 12:42:15 +02:00
⚡ ce wip
This commit is contained in:
@ -11,7 +11,13 @@ customElementWithDDE(HTMLCustomElement);
|
||||
customElements.define(HTMLCustomElement.tagName, HTMLCustomElement);
|
||||
|
||||
const instance= el(HTMLCustomElement.tagName);
|
||||
on.connected(e=> console.log("Element connected to the DOM:", e))(instance);
|
||||
on.connected( // preffered
|
||||
e=> console.log("Element connected to the DOM (v1):", e)
|
||||
)(instance);
|
||||
instance.addEventListener(
|
||||
"dde:connected",
|
||||
e=> console.log("Element connected to the DOM (v2):", e)
|
||||
);
|
||||
document.body.append(
|
||||
instance,
|
||||
);
|
||||
|
Reference in New Issue
Block a user