mirror of
https://github.com/jaandrle/deka-dom-el
synced 2025-04-02 20:15:53 +02:00
* ⚡ 🎉 * ⚡ wip * 🔤 * ⚡ wip * ⚡ wip * ⚡ Refatc signals to .get/.set syntax #26 * 🐛 Better types for on* * 🔤 * 🔤 * 🐛 coumputed signal * 🔤 ⚡ Docs UI/UX * ⚡ 🔤 UI enhancements * ⚡ (bs) (un)min * 🔤 adds debugging * 🔤 ssr * 🔤 * ⚡ bs/lint * 🔤 * 🔤 UI * 🔤 updates texts * 🔤UI * ⚡ dispatch * 🔤 events * 🔤 elements * 🔤 intro * 🐛 fixes completitions for el with components * 🐛 wrong file(s) in git * 🔤 logo * 🐛 🔤 types 3ps * 🔤 ui/ux * 🔤 * 🔤 * 🔤 scopes * 🔤 * 🔤 ui/ux * 🔤 * ⚡ issignal * 🔤 improvemens * ⚡ irelands * 🔤 UI/UX/wording * 🐛 npx-hint [Scrollable region must have keyboard access | Axe Rules | Deque University | Deque Systems](https://dequeuniversity.com/rules/axe/4.10/scrollable-region-focusable?application=axeAPI) * 🔤 logos * ⚡ better? dts builds * Update README.md
31 lines
1.3 KiB
JavaScript
31 lines
1.3 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", "on(<event>, <listener>[, <options>])(<element>)"),
|
|
" — just ", el("code", "<element>.addEventListener(<event>, <listener>[, <options>])")
|
|
),
|
|
el("li").append(
|
|
el("code", "on.<live-cycle>(<event>, <listener>[, <options>])(<element>)"),
|
|
" — corresponds to custom elemnets callbacks ", el("code", "<live-cycle>Callback(...){...}"),
|
|
". To connect to custom element see following page, else it is simulated by MutationObserver."
|
|
),
|
|
el("li").append(
|
|
el("code", "dispatchEvent(<event>[, <options>])(element)"),
|
|
" — just ", el("code", "<element>.dispatchEvent(new Event(<event>[, <options>]))")
|
|
),
|
|
el("li").append(
|
|
el("code", "dispatchEvent(<event>, <element>)([<detail>])"),
|
|
" — just ", el("code", "<element>.dispatchEvent(new Event(<event>))"), " or ",
|
|
el("code", "<element>.dispatchEvent(new CustomEvent(<event>, { detail: <detail> }))")
|
|
),
|
|
el("li").append(
|
|
el("code", "dispatchEvent(<event>[, <options>])(<element>[, <detail>])"),
|
|
" — just ", el("code", "<element>.dispatchEvent(new Event(<event>[, <options>] ))"), " or ",
|
|
el("code", "<element>.dispatchEvent(new CustomEvent(<event>, { detail: <detail> }))")
|
|
),
|
|
);
|
|
}
|