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?
optionaladdToCartComponent?:Component
Defined in: context/ProductGridContext.ts:46
addToCartLabels?
optionaladdToCartLabels?:Record<string,string>
Defined in: context/ProductGridContext.ts:29
afterAddToCart?
optionalafterAddToCart?: (cart,item?) =>void
Defined in: context/ProductGridContext.ts:33
Parameters
cart
Cart
item?
CartMainItem
Returns
void
allowAddToCart?
optionalallowAddToCart?:boolean
Defined in: context/ProductGridContext.ts:18
allowIncrDecr?
optionalallowIncrDecr?:boolean
Defined in: context/ProductGridContext.ts:21
badgesComponent?
optionalbadgesComponent?:Component
Defined in: context/ProductGridContext.ts:48
bulkPricesComponent?
optionalbulkPricesComponent?:Component
Defined in: context/ProductGridContext.ts:51
bundlesComponent?
optionalbundlesComponent?:Component
Defined in: context/ProductGridContext.ts:50
cartId?
optionalcartId?:string
Defined in: context/ProductGridContext.ts:23
childItems?
optionalchildItems?:number[]
Defined in: context/ProductGridContext.ts:24
clusterCardComponent?
optionalclusterCardComponent?:Component
Defined in: context/ProductGridContext.ts:55
columns
columns:
number
Defined in: context/ProductGridContext.ts:13
createCart?
optionalcreateCart?:boolean
Defined in: context/ProductGridContext.ts:19
enableAddFavorite?
optionalenableAddFavorite?:boolean
Defined in: context/ProductGridContext.ts:17
enableStockValidation?
optionalenableStockValidation?:boolean
Defined in: context/ProductGridContext.ts:22
favoriteComponent?
optionalfavoriteComponent?:Component
Defined in: context/ProductGridContext.ts:49
imageComponent?
optionalimageComponent?:Component
Defined in: context/ProductGridContext.ts:47
notes?
optionalnotes?:string
Defined in: context/ProductGridContext.ts:25
onCartCreated?
optionalonCartCreated?: (cart) =>void
Defined in: context/ProductGridContext.ts:32
Parameters
cart
Cart
Returns
void
onClusterClick?
optionalonClusterClick?: (cluster) =>void
Defined in: context/ProductGridContext.ts:38
Parameters
cluster
Cluster
Returns
void
onProceedToCheckout?
optionalonProceedToCheckout?: () =>void
Defined in: context/ProductGridContext.ts:34
Returns
void
onProductClick?
optionalonProductClick?: (product) =>void
Defined in: context/ProductGridContext.ts:37
Parameters
product
Product
Returns
void
onRequestQuoteClick?
optionalonRequestQuoteClick?: (cart) =>void
Defined in: context/ProductGridContext.ts:35
Parameters
cart
Cart
Returns
void
onToggleFavorite?
optionalonToggleFavorite?: (item,isFavorite) =>void
Defined in: context/ProductGridContext.ts:36
Parameters
item
Product | Cluster
isFavorite
boolean
Returns
void
price?
optionalprice?:number
Defined in: context/ProductGridContext.ts:26
priceComponent?
optionalpriceComponent?:Component
Defined in: context/ProductGridContext.ts:44
priceLabels?
optionalpriceLabels?:Record<string,string>
Defined in: context/ProductGridContext.ts:28
productCardComponent?
optionalproductCardComponent?:Component
Defined in: context/ProductGridContext.ts:54
showAvailability?
optionalshowAvailability?:boolean
Defined in: context/ProductGridContext.ts:16
showModal?
optionalshowModal?:boolean
Defined in: context/ProductGridContext.ts:20
showPrice?
optionalshowPrice?:boolean
Defined in: context/ProductGridContext.ts:14
showStock?
optionalshowStock?:boolean
Defined in: context/ProductGridContext.ts:15
stockComponent?
optionalstockComponent?:Component
Defined in: context/ProductGridContext.ts:45
stockLabels?
optionalstockLabels?:Record<string,string>
Defined in: context/ProductGridContext.ts:27
surchargesComponent?
optionalsurchargesComponent?:Component
Defined in: context/ProductGridContext.ts:52