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

🔤 Improves and updates docs

- customElementRender
- introduction example
This commit is contained in:
2024-12-13 15:01:18 +01:00
parent 3d0aeafc5c
commit e81ac9a3e5
12 changed files with 50 additions and 38 deletions

View File

@ -4,8 +4,8 @@ import { mnemonicUl } from "../mnemonicUl.html.js";
export function mnemonic(){
return mnemonicUl().append(
el("li").append(
el("code", "customElementRender(<custom-element>, <connect-target>, <render-function>[, <properties>])"),
" — use function to render DOM structure for given <custom-element>",
el("code", "customElementRender(<connect-target>, <render-function>[, <properties>])"),
" — use function to render DOM structure for given custom element (or its Shadow DOM)",
),
el("li").append(
el("code", "customElementWithDDE(<custom-element>)"),
@ -24,7 +24,7 @@ export function mnemonic(){
" — convert lifecycle methods to events, can be also used as decorator",
),
el("li").append(
el("code", "simulateSlots(<class-instance>, <body>[, <mapper>])"),
el("code", "simulateSlots(<class-instance>, <body>)"),
" — simulate slots for Custom Elements without shadow DOM",
),
el("li").append(