Trilium Frontend API
    Preparing search index...

    Interface ConfirmDeleteNoteBoxOptions

    How a view asking to remove a note wants the question put, over and above the note itself.

    Both are things only the caller can know — where the note is being removed from, and whether removing it there can mean anything other than deleting it.

    interface ConfirmDeleteNoteBoxOptions {
        message?: any;
        mustDeleteNote?: boolean;
    }

    Hierarchy (View Summary)

    Index
    message?: any

    The question, where the stock one does not fit. It names where the note is being removed from, which is the one thing about this dialog only the caller can say.

    mustDeleteNote?: boolean

    Removing the note from where it is shown necessarily deletes it, so there is nothing to offer a choice about: the checkbox is left out and the answer comes back as though it were ticked. For a view whose note is what it draws — a GPX track on a geo map, whose line is drawn from the note's own file — there is no taking it off and keeping it.