A widget that promotes OFCP on a product detail page, or similar

Hierarchy (view full)

Constructors

Properties

config: OfcpConfig
el: HTMLElement
iframe: HTMLIFrameElement = null

The iframe element

uiPath: "product-detail" = 'product-detail'

The path to the iframe which will be appended to the uiBaseURL to get the full URL

Methods

  • Lifecycle hooks for extending classes

    Parameters

    • event: MessageEvent<any>

      The message event

    Returns Promise<boolean>

    Promise Whether the message was handled

    BaseWidget.onMessage