Interface: ActionCodeProps
Defined in: components/ActionCode.tsx:16
Properties
afterActionCodeApply?
optionalafterActionCodeApply?: (cart) =>void
Defined in: components/ActionCode.tsx:39
Action callback method after action code is applied
Parameters
cart
Cart
Returns
void
afterActionCodeRemove?
optionalafterActionCodeRemove?: (cart) =>void
Defined in: components/ActionCode.tsx:42
Action callback method after action code is removed
Parameters
cart
Cart
Returns
void
cart
cart:
Cart
Defined in: components/ActionCode.tsx:21
The shopping cart used to populate the cart summary data
configuration?
optionalconfiguration?:any
Defined in: components/ActionCode.tsx:45
Configuration object for image filters
graphqlClient?
optionalgraphqlClient?:GraphQLClient
Defined in: components/ActionCode.tsx:18
GraphQL client for the Propeller SDK. Resolved from PropellerProvider when omitted.
labels?
optionallabels?:Record<string,string>
Defined in: components/ActionCode.tsx:27
Labels for the component
language?
optionallanguage?:string
Defined in: components/ActionCode.tsx:48
Language code for CartService operations. Defaults to 'NL'.
onActionCodeApply?
optionalonActionCodeApply?: (code,cart) =>void
Defined in: components/ActionCode.tsx:33
Action handler when action code is added to the cart
Parameters
code
string
cart
Cart
Returns
void
onActionCodeRemove?
optionalonActionCodeRemove?: (code,cart) =>void
Defined in: components/ActionCode.tsx:36
Action handler when action code is removed from the cart
Parameters
code
string
cart
Cart
Returns
void
showRemoveCode?
optionalshowRemoveCode?:boolean
Defined in: components/ActionCode.tsx:30
Display the option to remove the action code of the shopping cart. Defaults to true.
title?
optionaltitle?:string
Defined in: components/ActionCode.tsx:24
Action code block title