Trilium Frontend API
    Preparing search index...

    Interface ContextMenuCommandData

    Represents a set of commands that are triggered from the context menu, providing information such as the selected note.

    interface ContextMenuCommandData {
        branchId?: string;
        node?: FancytreeNode;
        noteId?: string;
        notePath?: string;
        ntxId?: string;
        selectedOrActiveBranchIds: string[];
        selectedOrActiveNoteIds?: string[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    branchId?: string
    node?: FancytreeNode

    Fancytree node for the target when the command originated from the Fancytree-based note tree. Omitted when dispatched from node-free UIs (e.g. the mobile drill-down navigator) — handlers should prefer the explicit noteId / branchId / notePath fields below.

    noteId?: string
    notePath?: string
    ntxId?: string
    selectedOrActiveBranchIds: string[]
    selectedOrActiveNoteIds?: string[]