ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Return type for the useContextMenu hook. Contains context menu state and handler functions.

    interface UseContextMenuReturn {
    /** Current context menu state, null when menu is closed */
    contextMenu: ContextMenuState | null;
    /** Function to handle context menu open events */
    handleContextMenu: (event: MouseEvent, product: Product) => void;
    /** Function to close the context menu */
    handleCloseContextMenu: () => void;
    }
    interface UseContextMenuReturn {
        contextMenu: null | ContextMenuState;
        handleContextMenu: (event: MouseEvent, product: Product) => void;
        handleCloseContextMenu: () => void;
    }
    Index

    Properties

    contextMenu: null | ContextMenuState

    Current context menu state, null when menu is closed

    handleContextMenu: (event: MouseEvent, product: Product) => void

    Function to handle context menu open events

    handleCloseContextMenu: () => void

    Function to close the context menu