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
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|