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

    Context menu state object containing position and product data.

    interface ContextMenuState {
    /** X coordinate for menu positioning (in pixels from left edge) */
    x: number;
    /** Y coordinate for menu positioning (in pixels from top edge) */
    y: number;
    /** Product data associated with the context menu */
    product: Product;
    }
    interface ContextMenuState {
        x: number;
        y: number;
        product: Product;
    }
    Index

    Properties

    Properties

    x: number

    X coordinate for menu positioning (in pixels from left edge)

    y: number

    Y coordinate for menu positioning (in pixels from top edge)

    product: Product

    Product data associated with the context menu