A widget that takes up the full screen, and is used to display different parts of the app.

Hierarchy (view full)

Constructors

Properties

config: OfcpConfig
el: HTMLElement
iframe: HTMLIFrameElement = null

The iframe element

uiPath: "" = ''

Not required for AppWidget, as it uses url instead of uiPath

url: string

The app widget allows any origin defined in the config, so it does not have a uiPath

Methods

  • If the iframe loads a new page, stores the url in the get parameters of the parent page. This ensures if a user refreshes the page, they will be taken back to the same place.

    Returns void

  • Lifecycle hooks for extending classes

    Parameters

    • event: MessageEvent<any>

      The message event

    Returns Promise<boolean>

    Promise Whether the message was handled

    BaseWidget.onMessage

  • Resets the parent page to its original state after the widget is hidden or destroyed

    Returns void