1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-01 12:22:15 +02:00

🔤 UI/UX/wording

This commit is contained in:
2025-03-07 10:40:57 +01:00
parent 57a5ff2dfe
commit 7f4787d704
27 changed files with 514 additions and 359 deletions

View File

@ -2,7 +2,7 @@ import { el, on } from "deka-dom-el";
// Third approach - append with on addon
el("button", {
textContent: "click me"
textContent: "click me"
}).append(
on("click", (e) => console.log("Clicked!", e))
on("click", (e) => console.log("Clicked!", e))
);

View File

@ -2,6 +2,6 @@ import { el } from "deka-dom-el";
// Using events with HTML attribute style
el("button", {
textContent: "click me",
"=onclick": "console.log(event)"
textContent: "click me",
"=onclick": "console.log(event)"
});

View File

@ -2,7 +2,7 @@ import { el, on } from "deka-dom-el";
// Using events as addons - chainable approach
el("button", {
textContent: "click me",
},
on("click", (e) => console.log("Clicked!", e))
textContent: "click me",
},
on("click", (e) => console.log("Clicked!", e))
);

View File

@ -2,6 +2,6 @@ import { el } from "deka-dom-el";
// Using events with property assignment
el("button", {
textContent: "click me",
onclick: console.log
textContent: "click me",
onclick: console.log
});