MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / showAtElement

Method showAtElement

src/components/StatusContextMenu.ts:92–104  ·  view source on GitHub ↗
(element: HTMLElement)

Source from the content-addressed store, hash-verified

90 }
91
92 public showAtElement(element: HTMLElement): void {
93 // Store the document reference from the element to support pop-out windows
94 this.targetDoc = element.ownerDocument;
95 this.menu.showAtPosition({
96 x: element.getBoundingClientRect().left,
97 y: element.getBoundingClientRect().bottom + 4,
98 });
99
100 // Apply color styling after menu is shown
101 window.setTimeout(() => {
102 this.applyColorStyling();
103 }, 10);
104 }
105
106 private applyColorStyling(): void {
107 const statusOptions = this.getStatusOptions();

Callers

nothing calls this directly

Calls 3

applyColorStylingMethod · 0.95
showAtPositionMethod · 0.80
setTimeoutMethod · 0.65

Tested by

no test coverage detected