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

    Props for the ContextMenu component.

    interface ContextMenuProps {
    /** X coordinate for menu positioning (pixels from left edge) */
    x: number;
    /** Y coordinate for menu positioning (pixels from top edge) */
    y: number;
    /** Function to call when the menu should be closed */
    onClose: () => void;
    /** Product data to display actions for */
    product: Product;
    /**
    * Called when the user selects "Ignore Product". Responsible for both
    * persisting the exclusion and removing the row from the visible results.
    */
    onExcludeProduct?: (product: Product) => void | Promise<void>;
    }
    interface ContextMenuProps {
        x: number;
        y: number;
        onClose: () => void;
        product: Product;
        onExcludeProduct?: (product: Product) => void | Promise<void>;
    }
    Index

    Properties

    x: number

    X coordinate for menu positioning (pixels from left edge)

    y: number

    Y coordinate for menu positioning (pixels from top edge)

    onClose: () => void

    Function to call when the menu should be closed

    product: Product

    Product data to display actions for

    onExcludeProduct?: (product: Product) => void | Promise<void>

    Called when the user selects "Ignore Product". Responsible for both persisting the exclusion and removing the row from the visible results.