Skip to main content

Interface: ProductGridConfig

Defined in: context/ProductGridContext.ts:11

Tier 2 grid config context. Collapses the feature-flag / display and callback props that ProductGrid otherwise cascades through ProductCard / ClusterCard down to AddToCart / ItemStock. ProductGrid is the provider; the card subtree consumes via useProductGridConfig() instead of receiving ~20 threaded props.

Properties​

addToCartComponent?​

optional addToCartComponent?: Component

Defined in: context/ProductGridContext.ts:46


addToCartLabels?​

optional addToCartLabels?: Record<string, string>

Defined in: context/ProductGridContext.ts:29


afterAddToCart?​

optional afterAddToCart?: (cart, item?) => void

Defined in: context/ProductGridContext.ts:33

Parameters​

cart​

Cart

item?​

CartMainItem

Returns​

void


allowAddToCart?​

optional allowAddToCart?: boolean

Defined in: context/ProductGridContext.ts:18


allowIncrDecr?​

optional allowIncrDecr?: boolean

Defined in: context/ProductGridContext.ts:21


badgesComponent?​

optional badgesComponent?: Component

Defined in: context/ProductGridContext.ts:48


belowNameComponent?​

optional belowNameComponent?: Component

Defined in: context/ProductGridContext.ts:63

Render arbitrary content directly below each card's product name. Receives the product as a prop; cascades to every ProductCard. Lets hosts surface extra per-product info (e.g. package descriptions) across the whole grid without swapping the entire card.


bulkPricesComponent?​

optional bulkPricesComponent?: Component

Defined in: context/ProductGridContext.ts:51


bundlesComponent?​

optional bundlesComponent?: Component

Defined in: context/ProductGridContext.ts:50


cartId?​

optional cartId?: string

Defined in: context/ProductGridContext.ts:23


childItems?​

optional childItems?: number[]

Defined in: context/ProductGridContext.ts:24


clusterCardComponent?​

optional clusterCardComponent?: Component

Defined in: context/ProductGridContext.ts:55


columns​

columns: number

Defined in: context/ProductGridContext.ts:13


createCart?​

optional createCart?: boolean

Defined in: context/ProductGridContext.ts:19


enableAddFavorite?​

optional enableAddFavorite?: boolean

Defined in: context/ProductGridContext.ts:17


enableStockValidation?​

optional enableStockValidation?: boolean

Defined in: context/ProductGridContext.ts:22


favoriteComponent?​

optional favoriteComponent?: Component

Defined in: context/ProductGridContext.ts:49


imageComponent?​

optional imageComponent?: Component

Defined in: context/ProductGridContext.ts:47


notes?​

optional notes?: string

Defined in: context/ProductGridContext.ts:25


onCartCreated?​

optional onCartCreated?: (cart) => void

Defined in: context/ProductGridContext.ts:32

Parameters​

cart​

Cart

Returns​

void


onClusterClick?​

optional onClusterClick?: (cluster) => void

Defined in: context/ProductGridContext.ts:38

Parameters​

cluster​

Cluster

Returns​

void


onProceedToCheckout?​

optional onProceedToCheckout?: () => void

Defined in: context/ProductGridContext.ts:34

Returns​

void


onProductClick?​

optional onProductClick?: (product) => void

Defined in: context/ProductGridContext.ts:37

Parameters​

product​

Product

Returns​

void


onRequestQuoteClick?​

optional onRequestQuoteClick?: (cart) => void

Defined in: context/ProductGridContext.ts:35

Parameters​

cart​

Cart

Returns​

void


onToggleFavorite?​

optional onToggleFavorite?: (item, isFavorite) => void

Defined in: context/ProductGridContext.ts:36

Parameters​

item​

Product | Cluster

isFavorite​

boolean

Returns​

void


price?​

optional price?: number

Defined in: context/ProductGridContext.ts:26


priceComponent?​

optional priceComponent?: Component

Defined in: context/ProductGridContext.ts:44


priceLabels?​

optional priceLabels?: Record<string, string>

Defined in: context/ProductGridContext.ts:28


productCardComponent?​

optional productCardComponent?: Component

Defined in: context/ProductGridContext.ts:54


showAvailability?​

optional showAvailability?: boolean

Defined in: context/ProductGridContext.ts:16


showModal?​

optional showModal?: boolean

Defined in: context/ProductGridContext.ts:20


showPrice?​

optional showPrice?: boolean

Defined in: context/ProductGridContext.ts:14


showStock?​

optional showStock?: boolean

Defined in: context/ProductGridContext.ts:15


stockComponent?​

optional stockComponent?: Component

Defined in: context/ProductGridContext.ts:45


stockLabels?​

optional stockLabels?: Record<string, string>

Defined in: context/ProductGridContext.ts:27


surchargesComponent?​

optional surchargesComponent?: Component

Defined in: context/ProductGridContext.ts:52