Interface RenderContextMenuOptions

interface RenderContextMenuOptions {
    anchor: Anchor;
    args?: any[];
    context?: HTMLElement;
    contextKeyService?: ContextMatcher;
    includeAnchorArg?: boolean;
    menuPath: MenuPath;
    onHide?: (() => void);
    skipSingleRootNode?: boolean;
}

Properties

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

A DOM context to use when evaluating any when clauses of menu items registered for this item.

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)

Type declaration

    • (): void
    • Returns 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.