ChemPal Documentation - v1.7.0
    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;
    /**
    * The results table instance, used to expand/collapse all currently visible
    * (top-level, expandable) rows from the menu.
    */
    table: Table<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>;
    /** The originating search query, recorded on the Summary sheet of xlsx exports. */
    executedQuery?: string;
    }
    interface ContextMenuProps {
        x: number;
        y: number;
        onClose: () => void;
        product: Product;
        table: Table<Product>;
        onExcludeProduct?: (product: Product) => void | Promise<void>;
        executedQuery?: string;
    }
    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

    table: Table<Product>

    The results table instance, used to expand/collapse all currently visible (top-level, expandable) rows from the menu.

    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.

    executedQuery?: string

    The originating search query, recorded on the Summary sheet of xlsx exports.