POLAR reference
    Preparing search index...

    Interface ContextMenuEntry

    interface ContextMenuEntry {
        callback: (coordinate: Coordinate) => void;
        icon: Icon;
        id: string;
        text: string;
        color?: Color;
        group?: string;
        textNs?: PluginId;
    }
    Index
    callback: (coordinate: Coordinate) => void

    Function to be called on click.

    icon: Icon

    Icon to be displayed for the menu entry.

    id: string

    Unique identifier. Relevant to be able to remove an entry.

    text: string

    Text to be displayed for the menu entry. Accepts a locale key. If the locale is namespaced, please set textNs as well. If no matching locale is found, the text is displayed as-is.

    color?: Color

    Override for the color of the icon and text.

    group?: string

    Override the group of the entry resulting in a visual differentiation.

    'default'
    
    textNs?: PluginId

    Namespace for the locale key of text.

    'core'