mapbox-gl-contextmenu - v1.6.0
    Preparing search index...

    Interface ContextMenuSubmenuOptions

    Configuration options for creating a context menu submenu. Extends ContextMenuItemOptions with submenu-specific timing options.

    interface ContextMenuSubmenuOptions {
        buttonClassName?: string;
        className?: string;
        disabled?: boolean;
        end?: Content;
        hideDelay?: number;
        label: string;
        showDelay?: number;
        start?: Content;
    }

    Hierarchy (View Summary)

    Index

    Properties

    buttonClassName?: string

    Custom CSS class name for the menu item's <button> element.

    className?: string

    Custom CSS class name for the menu item's <li> element.

    disabled?: boolean

    Whether the menu item is disabled. Defaults to false.

    end?: Content

    Content to display after the label.

    hideDelay?: number

    Delay in milliseconds before hiding the submenu when mouse leaves. Defaults to 200.

    label: string

    The text label to display.

    showDelay?: number

    Delay in milliseconds before showing the submenu on hover. Defaults to 300.

    start?: Content

    Content to display before the label (e.g., an icon element).