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

Function removeTaskCardWidgets

src/editor/TaskCardNoteDecorations.ts:131–137  ·  view source on GitHub ↗
(container: ParentNode)

Source from the content-addressed store, hash-verified

129}
130
131function removeTaskCardWidgets(container: ParentNode): void {
132 container.querySelectorAll(`.${CSS_TASK_CARD_WIDGET}`).forEach((el) => {
133 const holder = el as HTMLElementWithComponent;
134 holder.component?.unload();
135 el.remove();
136 });
137}
138
139function findCanvasEmbedTaskCardContainer(el: HTMLElement): HTMLElement | null {
140 return el.querySelector<HTMLElement>(".markdown-preview-sizer");

Callers 2

injectReadingModeWidgetFunction · 0.85

Calls 1

unloadMethod · 0.65

Tested by

no test coverage detected