Skip to main content

Interface: ActionCodeProps

Defined in: components/ActionCode.tsx:16

Properties​

afterActionCodeApply?​

optional afterActionCodeApply?: (cart) => void

Defined in: components/ActionCode.tsx:39

Action callback method after action code is applied

Parameters​

cart​

Cart

Returns​

void


afterActionCodeRemove?​

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

optional configuration?: any

Defined in: components/ActionCode.tsx:45

Configuration object for image filters


graphqlClient?​

optional graphqlClient?: GraphQLClient

Defined in: components/ActionCode.tsx:18

GraphQL client for the Propeller SDK. Resolved from PropellerProvider when omitted.


labels?​

optional labels?: Record<string, string>

Defined in: components/ActionCode.tsx:27

Labels for the component


language?​

optional language?: string

Defined in: components/ActionCode.tsx:48

Language code for CartService operations. Defaults to 'NL'.


onActionCodeApply?​

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

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

optional showRemoveCode?: boolean

Defined in: components/ActionCode.tsx:30

Display the option to remove the action code of the shopping cart. Defaults to true.


title?​

optional title?: string

Defined in: components/ActionCode.tsx:24

Action code block title