Trilium Frontend API
    Preparing search index...

    Interface NoteContextDataMap

    interface NoteContextDataMap {
        contentLoad: {
            retry: () => void;
            state: "error" | "loading" | "loaded";
        };
        pdfAnnotations: {
            annotations: PdfAnnotationInfo[];
            scrollToAnnotation(annotationId: string, pageNumber: number): void;
        };
        pdfAttachments: {
            attachments: PdfAttachment[];
            downloadAttachment(filename: string): void;
        };
        pdfLayers: {
            layers: PdfLayer[];
            toggleLayer(layerId: string, visible: boolean): void;
        };
        pdfPages: {
            currentPage: number;
            totalPages: number;
            requestThumbnail(page: number): void;
            scrollToPage(page: number): void;
        };
        saveState: { state: SaveState };
        toc: HeadingContext;
    }
    Index

    Properties

    contentLoad: { retry: () => void; state: "error" | "loading" | "loaded" }

    Published by content widgets (via useNoteBlob) while the note's content is being fetched, so the note detail can show a loading state instead of the previous note's content.

    Type Declaration

    • retry: () => void

      Re-attempts the content fetch (e.g. from a "Retry" button after an error).

    • state: "error" | "loading" | "loaded"
    pdfAnnotations: {
        annotations: PdfAnnotationInfo[];
        scrollToAnnotation(annotationId: string, pageNumber: number): void;
    }
    pdfAttachments: {
        attachments: PdfAttachment[];
        downloadAttachment(filename: string): void;
    }
    pdfLayers: {
        layers: PdfLayer[];
        toggleLayer(layerId: string, visible: boolean): void;
    }
    pdfPages: {
        currentPage: number;
        totalPages: number;
        requestThumbnail(page: number): void;
        scrollToPage(page: number): void;
    }
    saveState: { state: SaveState }