mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-04-02 04:05:52 +02:00
* 🔤 * ⚡ Replaces defined with name/host * 🐛 __dde_reactive * ⚡ v0.9.3 * 🔤 examples+best paractises * 🐛 📺 fixes npm run docs * ⚡ finalizes v0.9.3-alpha * 🔤 📺 coc tabs * 🔤
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
import { el } from "deka-dom-el";
|
|
import { mnemonicUl } from "../mnemonicUl.html.js";
|
|
|
|
export function mnemonic(){
|
|
return mnemonicUl().append(
|
|
el("li").append(
|
|
el("code", "assign(<element>, ...<objects>): <element>"),
|
|
" — assign properties (prefered, or attributes) to the element",
|
|
),
|
|
el("li").append(
|
|
el("code", "el(<tag-name>, <primitive>)[.append(...)]: <element-from-tag-name>"),
|
|
" — simple element containing only text (accepts string, number or signal)",
|
|
),
|
|
el("li").append(
|
|
el("code", "el(<tag-name>, <object>)[.append(...)]: <element-from-tag-name>"),
|
|
" — element with more properties (prefered, or attributes)",
|
|
),
|
|
el("li").append(
|
|
el("code", "el(<function>, <function-argument(s)>)[.append(...)]: <element-returned-by-function>"),
|
|
" — using component represented by function (must accept object like for <tag-name>)",
|
|
),
|
|
el("li").append(
|
|
el("code", "el(<...>, <...>, ...<addons>)"),
|
|
" — see following section of documentation",
|
|
),
|
|
el("li").append(
|
|
el("code", "elNS(<namespace>)(<as-el-see-above>)[.append(...)]: <element-based-on-arguments>"),
|
|
" — typically SVG elements",
|
|
),
|
|
);
|
|
}
|