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

    Interface ContextMenuItemOptions

    Configuration options for creating a context menu item.

    interface ContextMenuItemOptions {
        buttonClassName?: string;
        className?: string;
        disabled?: boolean;
        end?: Content;
        label: string;
        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.

    label: string

    The text label to display.

    start?: Content

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