MCPcopy
hub / github.com/callumalpass/tasknotes / getMenuItemElement

Function getMenuItemElement

src/components/TaskContextMenu.ts:124–127  ·  view source on GitHub ↗
(item: MenuItem)

Source from the content-addressed store, hash-verified

122}
123
124function getMenuItemElement(item: MenuItem): HTMLElement | null {
125 const menuItem = item as unknown as SubmenuMenuItem;
126 return menuItem.dom ?? menuItem.domEl ?? null;
127}
128
129function toMenuTitle(value: unknown, fallback = ""): string {
130 const text =

Callers 2

addStatusOptionsMethod · 0.70
addPriorityOptionsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected