Interface: FavoriteListDetailsProps
Defined in: components/FavoriteListDetails.tsx:32
Properties
addToCartLabels?
optionaladdToCartLabels?:Record<string,string>
Defined in: components/FavoriteListDetails.tsx:144
Label overrides for AddToCart UI strings
afterAddToCart?
optionalafterAddToCart?: (cart,item?) =>void
Defined in: components/FavoriteListDetails.tsx:123
Called after every successful add-to-cart
Parameters
cart
Cart
item?
CartMainItem
Returns
void
allowAddToCart?
optionalallowAddToCart?:boolean
Defined in: components/FavoriteListDetails.tsx:92
Enable add to cart for products. Clusters show "View cluster" instead (default: true)
allowIncrDecr?
optionalallowIncrDecr?:boolean
Defined in: components/FavoriteListDetails.tsx:129
Renders increment/decrement buttons beside quantity input (default: true)
cartId?
optionalcartId?:string
Defined in: components/FavoriteListDetails.tsx:103
ID of an existing cart to add items to
className?
optionalclassName?:string
Defined in: components/FavoriteListDetails.tsx:66
Extra CSS class applied to the root element
configuration?
optionalconfiguration?:any
Defined in: components/FavoriteListDetails.tsx:69
Configuration object for URL generation
createCart?
optionalcreateCart?:boolean
Defined in: components/FavoriteListDetails.tsx:106
Auto-create cart if none exists
enableStockValidation?
optionalenableStockValidation?:boolean
Defined in: components/FavoriteListDetails.tsx:132
Validate stock before adding to cart (default: false)
favoriteListId
favoriteListId:
string
Defined in: components/FavoriteListDetails.tsx:40
The favorite list ID to display
favoriteListItemComponent?
optionalfavoriteListItemComponent?:ComponentType<FavoriteListItemProps>
Defined in: components/FavoriteListDetails.tsx:156
graphqlClient?
optionalgraphqlClient?:GraphQLClient
Defined in: components/FavoriteListDetails.tsx:34
GraphQL client for the Propeller SDK. Resolved from PropellerProvider when omitted.
gridPaginationComponent?
optionalgridPaginationComponent?:ComponentType<GridPaginationProps>
Defined in: components/FavoriteListDetails.tsx:158
includeTax?
optionalincludeTax?:boolean
Defined in: components/FavoriteListDetails.tsx:152
Include tax in prices. Pass from PriceContext's usePrice()
itemLabels?
optionalitemLabels?:Record<string,string>
Defined in: components/FavoriteListDetails.tsx:150
Label overrides for FavoriteListItem UI strings
itemsPerPage?
optionalitemsPerPage?:number
Defined in: components/FavoriteListDetails.tsx:57
Number of items to show per page (default: 12)
labels?
optionallabels?:Record<string,string>
Defined in: components/FavoriteListDetails.tsx:72
UI string overrides
language?
optionallanguage?:string
Defined in: components/FavoriteListDetails.tsx:135
Language code forwarded to CartService (default: 'NL')
onAddToCart?
optionalonAddToCart?: (product,clusterId?,quantity?,childItems?,notes?,price?,showModal?) =>Cart
Defined in: components/FavoriteListDetails.tsx:112
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/FavoriteListDetails.tsx:109
Called after a new cart is created internally by AddToCart
Parameters
cart
Cart
Returns
void
onItemAdded?
optionalonItemAdded?: (item) =>void
Defined in: components/FavoriteListDetails.tsx:54
Called after an item is added to the list from the in-list search modal. Use this to refresh the source the lists overview reads from (e.g. the user object), so the per-list count stays correct after navigating back.
Parameters
item
Product | Cluster
Returns
void
onItemClick?
optionalonItemClick?: (item) =>void
Defined in: components/FavoriteListDetails.tsx:98
Callback when an item title or image is clicked
Parameters
item
Product | Cluster
Returns
void
onItemDelete?
optionalonItemDelete?: (itemId,itemType?) =>void
Defined in: components/FavoriteListDetails.tsx:43
Action method for deleting a single favorite list item. If not provided, delete button is hidden
Parameters
itemId
string
itemType?
string
Returns
void
onItemsDelete?
optionalonItemsDelete?: (items) =>void
Defined in: components/FavoriteListDetails.tsx:46
Batched delete callback for the floating bar "Remove" action. When provided, it is called once with all selected items; otherwise the component falls back to calling onItemDelete per item
Parameters
items
object[]
Returns
void
onListLoaded?
optionalonListLoaded?: (list) =>void
Defined in: components/FavoriteListDetails.tsx:49
Called after the favorite list is fetched, with the full list object
Parameters
list
FavoriteList
Returns
void
onProceedToCheckout?
optionalonProceedToCheckout?: () =>void
Defined in: components/FavoriteListDetails.tsx:138
Called when "Proceed to checkout" is clicked in AddToCart modal
Returns
void
onRequestQuoteClick?
optionalonRequestQuoteClick?: (cart) =>void
Defined in: components/FavoriteListDetails.tsx:141
Called when "Request a Quote" is clicked in AddToCart modal
Parameters
cart
Cart
Returns
void
paginationVariant?
optionalpaginationVariant?:string
Defined in: components/FavoriteListDetails.tsx:63
Pagination display variant: 'compact' or 'full' (default: 'compact')
showAvailability?
optionalshowAvailability?:boolean
Defined in: components/FavoriteListDetails.tsx:83
Show availability status (e.g. "In stock") inside ItemStock (default: true)
showDelete?
optionalshowDelete?:boolean
Defined in: components/FavoriteListDetails.tsx:95
Show delete button on each item (default: true)
showModal?
optionalshowModal?:boolean
Defined in: components/FavoriteListDetails.tsx:126
Show modal after successful add (default: false)
showPagination?
optionalshowPagination?:boolean
Defined in: components/FavoriteListDetails.tsx:60
Show pagination controls (default: true)
showSku?
optionalshowSku?:boolean
Defined in: components/FavoriteListDetails.tsx:89
Display the SKU beneath item names (default: true)
showStock?
optionalshowStock?:boolean
Defined in: components/FavoriteListDetails.tsx:86
Show numeric stock quantity inside ItemStock (default: true)
showStockComponent?
optionalshowStockComponent?:boolean
Defined in: components/FavoriteListDetails.tsx:80
Show stock availability on items (default: false)
stockLabels?
optionalstockLabels?:Record<string,string>
Defined in: components/FavoriteListDetails.tsx:147
Label overrides for ItemStock UI strings
titleLinkable?
optionaltitleLinkable?:boolean
Defined in: components/FavoriteListDetails.tsx:77
Should item titles link to the PDP (default: true)
user?
optionaluser?:Contact|Customer
Defined in: components/FavoriteListDetails.tsx:37
The logged in user for which the favorite list is going to be displayed. Resolved from PropellerProvider when omitted.