Trilium Frontend API
    Preparing search index...

    Interface ConfirmWithTitleOptions

    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 ConfirmWithTitleOptions {
        callback: ConfirmDialogCallback;
        deletionTarget?: NoteDeletionTarget;
        message?: any;
        mustDeleteNote?: boolean;
        title: string;
    }

    Hierarchy (View Summary)

    Index
    deletionTarget?: NoteDeletionTarget

    The note being removed, and the placement it is being removed from. Given it, the dialog says for itself what ticking "Also delete the note" would cost (see NoteDeletionTarget); without it the box is offered bare, as it was before it could tell.

    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.

    title: string