Theia API Documentation v1.65.0
    Preparing search index...

    An options object for initializing a context menu.

    interface IOptions {
        commands: CommandRegistry;
        groupByTarget?: boolean;
        renderer?: Menu.IRenderer;
        sortBySelector?: boolean;
    }
    Index

    Properties

    commands: CommandRegistry

    The command registry to use with the context menu.

    groupByTarget?: boolean

    Whether to group items following the DOM hierarchy.

    Default true.

    If true, when the mouse event occurs on element span within div.top, the items matching div.top will be shown before the ones matching body.

    renderer?: Menu.IRenderer

    A custom renderer for use with the context menu.

    sortBySelector?: boolean

    Whether to sort by selector and rank or only rank.

    Default true.