Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

This section explains how you can use APIs exposed from the Greenback widget to trigger some actions.

Actions table

Action

Action Data Structure

Example

window.sendGreenbackMessage()

{
  message: string
  trigger: "pdp" | "widget"
  source?: string
}
window.sendGreenbackMessage({
  message: "Show me blue dresses",
  trigger: "widget"
})

Note: The event trigger only works when the required fields exist.

  • No labels