Trilium Frontend API
    Preparing search index...

    Interface ViewScope

    interface ViewScope {
        attachmentId?: string;
        highlightsListPreviousVisible?: boolean;
        highlightsListTemporarilyHidden?: boolean;
        isReadOnly?: boolean;
        readOnlyTemporarilyDisabled?: boolean;
        tocCollapsedHeadings?: Set<string>;
        tocPreviousVisible?: boolean;
        tocTemporarilyHidden?: boolean;
        viewMode?: ViewMode;
    }
    Index

    Properties

    attachmentId?: string
    highlightsListPreviousVisible?: boolean
    highlightsListTemporarilyHidden?: boolean
    isReadOnly?: boolean

    If true, it indicates that the note in the view should be opened in read-only mode (for supported note types such as text or code).

    The reason why we store this information here is that a note can become read-only as the user types content in it, and we wouldn't want to immediately enter read-only mode.

    readOnlyTemporarilyDisabled?: boolean
    tocCollapsedHeadings?: Set<string>
    tocPreviousVisible?: boolean
    tocTemporarilyHidden?: boolean
    viewMode?: ViewMode
    • "source", when viewing the source code of a note.
    • "attachments", when viewing the attachments of a note.
    • "contextual-help", if the current view represents a help window that was opened to the side of the main content.
    • "default", otherwise.