Interface: FavoriteListItemProps
Defined in: components/FavoriteListItem.tsx:29
Properties
addToCartLabels?
optionaladdToCartLabels?:Record<string,string>
Defined in: components/FavoriteListItem.tsx:125
Label overrides for AddToCart UI strings
afterAddToCart?
optionalafterAddToCart?: (cart,item?) =>void
Defined in: components/FavoriteListItem.tsx:104
Called after every successful add-to-cart
Parameters
cart
Cart
item?
CartMainItem
Returns
void
allowAddToCart?
optionalallowAddToCart?:boolean
Defined in: components/FavoriteListItem.tsx:49
Enables the add to cart functionality for products. Clusters show a "View cluster" button instead (default: true)
allowIncrDecr?
optionalallowIncrDecr?:boolean
Defined in: components/FavoriteListItem.tsx:110
Renders increment/decrement buttons beside quantity input (default: true)
cartId?
optionalcartId?:string
Defined in: components/FavoriteListItem.tsx:84
ID of an existing cart to add items to
children?
optionalchildren?:ReactNode
Defined in: components/FavoriteListItem.tsx:131
Compound mode opt-in.
className?
optionalclassName?:string
Defined in: components/FavoriteListItem.tsx:61
Extra CSS class applied to the root element
configuration?
optionalconfiguration?:any
Defined in: components/FavoriteListItem.tsx:64
Configuration object for URL generation
createCart?
optionalcreateCart?:boolean
Defined in: components/FavoriteListItem.tsx:87
When true and no cartId is available, AddToCart automatically creates a cart
currency?
optionalcurrency?:string
Defined in: components/FavoriteListItem.tsx:73
Currency symbol for prices. Resolved from PropellerProvider when omitted; defaults to '€'.
enableStockValidation?
optionalenableStockValidation?:boolean
Defined in: components/FavoriteListItem.tsx:113
Validate stock before adding to cart (default: false)
graphqlClient?
optionalgraphqlClient?:GraphQLClient
Defined in: components/FavoriteListItem.tsx:78
Initialised Propeller SDK GraphQL client (required by embedded AddToCart)
includeTax?
optionalincludeTax?:boolean
Defined in: components/FavoriteListItem.tsx:70
Include tax in the price display. When provided, overrides the internal PriceToggle state
item
item:
Product|Cluster
Defined in: components/FavoriteListItem.tsx:31
Product or Cluster to be listed as a favorite list item
labels?
optionallabels?:Record<string,string>
Defined in: components/FavoriteListItem.tsx:67
UI string overrides
language?
optionallanguage?:string
Defined in: components/FavoriteListItem.tsx:116
Language code forwarded to CartService (default: 'NL')
onAddToCart?
optionalonAddToCart?: (product,clusterId?,quantity?,childItems?,notes?,price?,showModal?) =>Cart
Defined in: components/FavoriteListItem.tsx:93
Fully replaces the internal CartService.addItemToCart call
Parameters
product
Product
clusterId?
number
quantity?
number
childItems?
CartChildItemInput[]
notes?
string
price?
number
showModal?
boolean
Returns
Cart
onCartCreated?
optionalonCartCreated?: (cart) =>void
Defined in: components/FavoriteListItem.tsx:90
Called after a new cart is created internally by AddToCart
Parameters
cart
Cart
Returns
void
onDelete?
optionalonDelete?: (itemId) =>void
Defined in: components/FavoriteListItem.tsx:55
Action callback fired when a favorite list item is deleted from the list
Parameters
itemId
string
Returns
void
onItemClick?
optionalonItemClick?: (item) =>void
Defined in: components/FavoriteListItem.tsx:58
Callback when the item title or image is clicked. Prevents default <a> navigation when provided
Parameters
item
Product | Cluster
Returns
void
onProceedToCheckout?
optionalonProceedToCheckout?: () =>void
Defined in: components/FavoriteListItem.tsx:119
Called when "Proceed to checkout" is clicked in AddToCart modal
Returns
void
onRequestQuoteClick?
optionalonRequestQuoteClick?: (cart) =>void
Defined in: components/FavoriteListItem.tsx:122
Called when "Request a Quote" is clicked in AddToCart modal
Parameters
cart
Cart
Returns
void
showAvailability?
optionalshowAvailability?:boolean
Defined in: components/FavoriteListItem.tsx:40
Show availability status (e.g. "In stock") inside ItemStock (default: true)
showDelete?
optionalshowDelete?:boolean
Defined in: components/FavoriteListItem.tsx:52
Display a delete button that removes the favorite list item from the list (default: true)
showModal?
optionalshowModal?:boolean
Defined in: components/FavoriteListItem.tsx:107
Show modal after successful add (default: false)
showSku?
optionalshowSku?:boolean
Defined in: components/FavoriteListItem.tsx:46
Display the SKU of the item beneath the item name (default: true)
showStock?
optionalshowStock?:boolean
Defined in: components/FavoriteListItem.tsx:43
Show numeric stock quantity inside ItemStock (default: true)
showStockComponent?
optionalshowStockComponent?:boolean
Defined in: components/FavoriteListItem.tsx:37
Should the stock be displayed in the favorite list item (default: false)
stockLabels?
optionalstockLabels?:Record<string,string>
Defined in: components/FavoriteListItem.tsx:128
Label overrides for ItemStock UI strings
titleLinkable?
optionaltitleLinkable?:boolean
Defined in: components/FavoriteListItem.tsx:34
Should the item title be a link to the PDP (default: true)
user?
optionaluser?:Contact|Customer|null
Defined in: components/FavoriteListItem.tsx:81
Authenticated user — used for cart creation / lookup