Interface: FavoriteListItemProps
Defined in: components/FavoriteListItem.tsx:27
Properties
addToCartLabels?
optionaladdToCartLabels?:Record<string,string>
Defined in: components/FavoriteListItem.tsx:123
Label overrides for AddToCart UI strings
afterAddToCart?
optionalafterAddToCart?: (cart,item?) =>void
Defined in: components/FavoriteListItem.tsx:102
Called after every successful add-to-cart
Parameters
cart
Cart
item?
CartMainItem
Returns
void
allowAddToCart?
optionalallowAddToCart?:boolean
Defined in: components/FavoriteListItem.tsx:47
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:108
Renders increment/decrement buttons beside quantity input (default: true)
cartId?
optionalcartId?:string
Defined in: components/FavoriteListItem.tsx:82
ID of an existing cart to add items to
children?
optionalchildren?:ReactNode
Defined in: components/FavoriteListItem.tsx:129
Compound mode opt-in.
className?
optionalclassName?:string
Defined in: components/FavoriteListItem.tsx:59
Extra CSS class applied to the root element
configuration?
optionalconfiguration?:any
Defined in: components/FavoriteListItem.tsx:62
Configuration object for URL generation
createCart?
optionalcreateCart?:boolean
Defined in: components/FavoriteListItem.tsx:85
When true and no cartId is available, AddToCart automatically creates a cart
currency?
optionalcurrency?:string
Defined in: components/FavoriteListItem.tsx:71
Currency symbol for prices. Resolved from PropellerProvider when omitted; defaults to '€'.
enableStockValidation?
optionalenableStockValidation?:boolean
Defined in: components/FavoriteListItem.tsx:111
Validate stock before adding to cart (default: false)
graphqlClient?
optionalgraphqlClient?:GraphQLClient
Defined in: components/FavoriteListItem.tsx:76
Initialised Propeller SDK GraphQL client (required by embedded AddToCart)
includeTax?
optionalincludeTax?:boolean
Defined in: components/FavoriteListItem.tsx:68
Include tax in the price display. When provided, overrides the internal PriceToggle state
item
item:
Product|Cluster
Defined in: components/FavoriteListItem.tsx:29
Product or Cluster to be listed as a favorite list item
labels?
optionallabels?:Record<string,string>
Defined in: components/FavoriteListItem.tsx:65
UI string overrides
language?
optionallanguage?:string
Defined in: components/FavoriteListItem.tsx:114
Language code forwarded to CartService (default: 'NL')
onAddToCart?
optionalonAddToCart?: (product,clusterId?,quantity?,childItems?,notes?,price?,showModal?) =>Cart
Defined in: components/FavoriteListItem.tsx:91
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:88
Called after a new cart is created internally by AddToCart
Parameters
cart
Cart
Returns
void
onDelete?
optionalonDelete?: (itemId) =>void
Defined in: components/FavoriteListItem.tsx:53
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:56
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:117
Called when "Proceed to checkout" is clicked in AddToCart modal
Returns
void
onRequestQuoteClick?
optionalonRequestQuoteClick?: (cart) =>void
Defined in: components/FavoriteListItem.tsx:120
Called when "Request a Quote" is clicked in AddToCart modal
Parameters
cart
Cart
Returns
void
showAvailability?
optionalshowAvailability?:boolean
Defined in: components/FavoriteListItem.tsx:38
Show availability status (e.g. "In stock") inside ItemStock (default: true)
showDelete?
optionalshowDelete?:boolean
Defined in: components/FavoriteListItem.tsx:50
Display a delete button that removes the favorite list item from the list (default: true)
showModal?
optionalshowModal?:boolean
Defined in: components/FavoriteListItem.tsx:105
Show modal after successful add (default: false)
showSku?
optionalshowSku?:boolean
Defined in: components/FavoriteListItem.tsx:44
Display the SKU of the item beneath the item name (default: true)
showStock?
optionalshowStock?:boolean
Defined in: components/FavoriteListItem.tsx:41
Show numeric stock quantity inside ItemStock (default: true)
showStockComponent?
optionalshowStockComponent?:boolean
Defined in: components/FavoriteListItem.tsx:35
Should the stock be displayed in the favorite list item (default: false)
stockLabels?
optionalstockLabels?:Record<string,string>
Defined in: components/FavoriteListItem.tsx:126
Label overrides for ItemStock UI strings
titleLinkable?
optionaltitleLinkable?:boolean
Defined in: components/FavoriteListItem.tsx:32
Should the item title be a link to the PDP (default: true)
user?
optionaluser?:Contact|Customer|null
Defined in: components/FavoriteListItem.tsx:79
Authenticated user — used for cart creation / lookup