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

Method show

src/components/StatusContextMenu.ts:78–90  ·  view source on GitHub ↗
(event: UIEvent)

Source from the content-addressed store, hash-verified

76 }
77
78 public show(event: UIEvent): void {
79 // Store the document reference from the event target to support pop-out windows
80 // Use cross-window compatible instanceOf check
81 if ((event.target as Node)?.instanceOf?.(HTMLElement)) {
82 this.targetDoc = (event.target as HTMLElement).ownerDocument;
83 }
84 this.menu.show(event);
85
86 // Apply color styling after menu is shown
87 window.setTimeout(() => {
88 this.applyColorStyling();
89 }, 10);
90 }
91
92 public showAtElement(element: HTMLElement): void {
93 // Store the document reference from the element to support pop-out windows

Callers 1

Calls 3

applyColorStylingMethod · 0.95
showMethod · 0.65
setTimeoutMethod · 0.65

Tested by

no test coverage detected