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

Method show

src/components/PriorityContextMenu.ts:48–60  ·  view source on GitHub ↗
(event: UIEvent)

Source from the content-addressed store, hash-verified

46 }
47
48 public show(event: UIEvent): void {
49 // Store the document reference from the event target to support pop-out windows
50 // Use cross-window compatible instanceOf check
51 if ((event.target as Node)?.instanceOf?.(HTMLElement)) {
52 this.targetDoc = (event.target as HTMLElement).ownerDocument;
53 }
54 this.menu.show(event);
55
56 // Apply color styling after menu is shown
57 window.setTimeout(() => {
58 this.applyColorStyling();
59 }, 10);
60 }
61
62 public showAtElement(element: HTMLElement): void {
63 // Store the document reference from the element to support pop-out windows

Callers 4

showPriorityMenuFunction · 0.95
showPriorityMenuMethod · 0.95

Calls 3

applyColorStylingMethod · 0.95
showMethod · 0.65
setTimeoutMethod · 0.65

Tested by

no test coverage detected