MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / getElem

Method getElem

apps/client/src/code/pages/page/notes/note.ts:546–552  ·  view source on GitHub ↗
(part: string | null)

Source from the content-addressed store, hash-verified

544 }
545
546 getElem(part: string | null): HTMLElement | null {
547 if (part == null) {
548 return document.querySelector(`#note-${this.id}`);
549 } else {
550 return document.querySelector(`#note-${this.id} .${part}`);
551 }
552 }
553 getElems(part: string | null): HTMLElement[] {
554 if (part == null) {
555 return Array.from(document.querySelectorAll(`#note-${this.id}`));

Callers 4

scrollIntoViewMethod · 0.95
getClientRectMethod · 0.95
goToPageMethod · 0.80
finishSetupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected