1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2024-11-25 01:39:37 +01:00

🔤 ce wip

This commit is contained in:
Jan Andrle 2024-06-07 14:38:38 +02:00
parent a5efbd236c
commit 55860b99eb
Signed by: jaandrle
GPG Key ID: B3A25AED155AFFAB
3 changed files with 8 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -23,7 +23,7 @@ function ddeComponent({ attr }){
);
return el().append(
el("p", `Hello from Custom Element with attribute '${attr}'`)
)
);
}
customElementWithDDE(HTMLCustomElement);
customElements.define(HTMLCustomElement.tagName, HTMLCustomElement);

View File

@ -76,7 +76,10 @@ export function page({ pkg, info }){
`),
el(example, { src: fileURL("./components/examples/customElement/dde.js"), page_id }),
el("p").append(...T`
as you can see, you can use components created based on the documentation previously introduced. To unlock
full potential, use with combination ${el("code", "customElementWithDDE")} (allows to use livecycle events)
and ${el("code", "observedAttributes")} (converts attributes to render function arguments
${el("em", "default")}) or ${el("code", "S.observedAttributes")} (converts attributes to signals).
`),