The WidgetManager does handle creation and destruction of this widget under the hood. A widget that takes up the full screen, and is used to display different parts of the app.

Hierarchy (view full)

Implements

Constructors

Properties

The widget manager API

The widget manager configuration

el: HTMLElement

The element to attach the widget to

iframe: HTMLIFrameElement = null

The iframe element

listeners: Map<string, MessageEventHandler<any>[]> = ...
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

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

    Returns void

  • Triggers all listeners for a given message type

    Parameters

    • type: string

      The message type

    • envelope: MessageEnvelope<any>

      The message envelope containing the payload

    • sdk: ISDK

      The SDK instance

    • widget: IWidget

      The widget instance

    Returns void