Skip to main content

Interface: MachineGridProps

Defined in: components/MachineGrid.tsx:73

Properties

afterAddToCart?

optional afterAddToCart?: (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?

optional allowAddToCart?: 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?

optional cartId?: string

Defined in: components/MachineGrid.tsx:107


className?

optional className?: string

Defined in: components/MachineGrid.tsx:129


companyId?

optional companyId?: number

Defined in: components/MachineGrid.tsx:99


configuration?

optional configuration?: object

Defined in: components/MachineGrid.tsx:103

imageSearchFiltersGrid?

optional imageSearchFiltersGrid?: unknown

imageVariantFiltersMedium?

optional imageVariantFiltersMedium?: unknown


createCart?

optional createCart?: boolean

Defined in: components/MachineGrid.tsx:108


filtersLabels?

optional filtersLabels?: Record<string, string>

Defined in: components/MachineGrid.tsx:125


graphqlClient?

optional graphqlClient?: GraphQLClient

Defined in: components/MachineGrid.tsx:97


language?

optional language?: string

Defined in: components/MachineGrid.tsx:101

Storefront language (parts).


listing

listing: MachineListingState

Defined in: components/MachineGrid.tsx:93


machineCardLabels?

optional machineCardLabels?: Record<string, string>

Defined in: components/MachineGrid.tsx:127


machineLanguage?

optional machineLanguage?: string

Defined in: components/MachineGrid.tsx:90

Language the machine tree is authored in (usually EN). Defaults to 'EN'.


onCartCreated?

optional onCartCreated?: (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

MachineListingState

Returns

void


onProductClick?

optional onProductClick?: (product) => void

Defined in: components/MachineGrid.tsx:121

Parameters

product

Product

Returns

void


paginationLabels?

optional paginationLabels?: Record<string, string>

Defined in: components/MachineGrid.tsx:124


portalMode?

optional portalMode?: string

Defined in: components/MachineGrid.tsx:104


rootTitle?

optional rootTitle?: 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?

optional showAvailability?: boolean

Defined in: components/MachineGrid.tsx:120


showPrice?

optional showPrice?: boolean

Defined in: components/MachineGrid.tsx:118


showStock?

optional showStock?: boolean

Defined in: components/MachineGrid.tsx:119


source?

optional source?: string

Defined in: components/MachineGrid.tsx:82

External system the installation ids belong to (root mode).


sourceIds?

optional sourceIds?: string[]

Defined in: components/MachineGrid.tsx:84

Installation ids from MY_INSTALLATIONS (root mode).


taxZone?

optional taxZone?: string

Defined in: components/MachineGrid.tsx:102


toolbarLabels?

optional toolbarLabels?: Record<string, string>

Defined in: components/MachineGrid.tsx:126


user?

optional user?: Contact | Customer | null

Defined in: components/MachineGrid.tsx:98