Theia API Documentation v1.65.0
    Preparing search index...
    interface RenderContextMenuOptions {
        anchor: Anchor;
        args?: any[];
        context: HTMLElement;
        contextKeyService?: ContextMatcher;
        includeAnchorArg?: boolean;
        menu?: CompoundMenuNode;
        menuPath: MenuPath;
        onHide?: () => void;
        skipSingleRootNode?: boolean;
    }
    Index

    Properties

    anchor: Anchor
    args?: any[]
    context: HTMLElement

    A DOM context for the menu to be shown Will be used to attach the menu to a window and to evaluate enablement ("when"-clauses)

    contextKeyService?: ContextMatcher
    includeAnchorArg?: boolean

    Whether the anchor should be passed as an argument to the handlers of commands for this context menu. If true, the anchor will be appended to the list of arguments or passed as the only argument if no other arguments are supplied. Default is true.

    menuPath: MenuPath
    onHide?: () => void
    skipSingleRootNode?: boolean

    If true a single submenu in the context menu is not rendered but its children are rendered on the top level. Default is false.