Interface: MachineGridProps
Defined in: components/MachineGrid.tsx:73
Properties
afterAddToCart?
optionalafterAddToCart?: (cart,item?) =>void
Defined in: components/MachineGrid.tsx:116
Fired after every successful add-to-cart (adds into an EXISTING cart too, not
just the first create). Forward this to CartContext.saveCart or the cart
icon/sidebar/page won't reflect parts added from the grid — onCartCreated
alone only fires when a brand-new cart is created.
Parameters
cart
Cart
item?
CartMainItem
Returns
void
allowAddToCart?
optionalallowAddToCart?:boolean
Defined in: components/MachineGrid.tsx:117
basePath
basePath:
string
Defined in: components/MachineGrid.tsx:78
Localized machines base path (e.g. /nl/machines) — used to build hrefs.
cartId?
optionalcartId?:string
Defined in: components/MachineGrid.tsx:107
className?
optionalclassName?:string
Defined in: components/MachineGrid.tsx:129
companyId?
optionalcompanyId?:number
Defined in: components/MachineGrid.tsx:99
configuration?
optionalconfiguration?:object
Defined in: components/MachineGrid.tsx:103
imageSearchFiltersGrid?
optionalimageSearchFiltersGrid?:unknown
imageVariantFiltersMedium?
optionalimageVariantFiltersMedium?:unknown
createCart?
optionalcreateCart?:boolean
Defined in: components/MachineGrid.tsx:108
filtersLabels?
optionalfiltersLabels?:Record<string,string>
Defined in: components/MachineGrid.tsx:125
graphqlClient?
optionalgraphqlClient?:GraphQLClient
Defined in: components/MachineGrid.tsx:97
language?
optionallanguage?:string
Defined in: components/MachineGrid.tsx:101
Storefront language (parts).
listing
listing:
MachineListingState
Defined in: components/MachineGrid.tsx:93
machineCardLabels?
optionalmachineCardLabels?:Record<string,string>
Defined in: components/MachineGrid.tsx:127
machineLanguage?
optionalmachineLanguage?:string
Defined in: components/MachineGrid.tsx:90
Language the machine tree is authored in (usually EN). Defaults to 'EN'.
onCartCreated?
optionalonCartCreated?: (cart) =>void
Defined in: components/MachineGrid.tsx:109
Parameters
cart
Cart
Returns
void
onListingChange
onListingChange: (
next) =>void
Defined in: components/MachineGrid.tsx:94
Parameters
next
Returns
void
onProductClick?
optionalonProductClick?: (product) =>void
Defined in: components/MachineGrid.tsx:121
Parameters
product
Product
Returns
void
paginationLabels?
optionalpaginationLabels?:Record<string,string>
Defined in: components/MachineGrid.tsx:124
portalMode?
optionalportalMode?:string
Defined in: components/MachineGrid.tsx:104
rootTitle?
optionalrootTitle?:string
Defined in: components/MachineGrid.tsx:86
Title for the root list. Defaults to 'Machines'.
segments
segments:
string[]
Defined in: components/MachineGrid.tsx:76
Current URL path under the machines root, e.g. ['mixer','frame']. [] = root.
showAvailability?
optionalshowAvailability?:boolean
Defined in: components/MachineGrid.tsx:120
showPrice?
optionalshowPrice?:boolean
Defined in: components/MachineGrid.tsx:118
showStock?
optionalshowStock?:boolean
Defined in: components/MachineGrid.tsx:119
source?
optionalsource?:string
Defined in: components/MachineGrid.tsx:82
External system the installation ids belong to (root mode).
sourceIds?
optionalsourceIds?:string[]
Defined in: components/MachineGrid.tsx:84
Installation ids from MY_INSTALLATIONS (root mode).
taxZone?
optionaltaxZone?:string
Defined in: components/MachineGrid.tsx:102
toolbarLabels?
optionaltoolbarLabels?:Record<string,string>
Defined in: components/MachineGrid.tsx:126
user?
optionaluser?:Contact|Customer|null
Defined in: components/MachineGrid.tsx:98