1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2024-11-23 17:19:37 +01:00
deka-dom-el/docs/components/mnemonic/elements-init.js

32 lines
1.0 KiB
JavaScript
Raw Normal View History

2023-11-29 18:25:21 +01:00
import { el } from "deka-dom-el";
import { mnemonicUl } from "../mnemonicUl.html.js";
export function mnemonic(){
return mnemonicUl().append(
el("li").append(
2024-11-22 16:26:42 +01:00
el("code", "assign(<element>, ...<idl-objects>): <element>"),
" — assign properties to the element",
2023-11-29 18:25:21 +01:00
),
el("li").append(
2024-11-22 16:26:42 +01:00
el("code", "el(<tag-name>, <primitive>)[.append(...)]: <element-from-tag-name>"),
" — simple element containing only text",
2023-11-29 18:25:21 +01:00
),
el("li").append(
2024-11-22 16:26:42 +01:00
el("code", "el(<tag-name>, <idl-object>)[.append(...)]: <element-from-tag-name>"),
" — element with more properties",
2023-11-29 18:25:21 +01:00
),
el("li").append(
2024-11-22 16:26:42 +01:00
el("code", "el(<function>, <function-argument(s)>)[.append(...)]: <element-returned-by-function>"),
" — using component represented by function",
2023-11-29 18:25:21 +01:00
),
el("li").append(
2024-11-22 16:26:42 +01:00
el("code", "el(<...>, <...>, ...<addons>)"),
" — see following page"
2023-11-29 18:25:21 +01:00
),
el("li").append(
2024-11-22 16:26:42 +01:00
el("code", "elNS(<namespace>)(<as-el-see-above>)[.append(...)]: <element-based-on-arguments>"),
" — typically SVG elements",
2023-11-29 18:25:21 +01:00
)
);
}