Class IFrameProvider

Wrapper over an iframe

viewportChange Event when the viewport of the element changes destroy Termination of the provider

Hierarchy

  • EventEmitter
    • IFrameProvider

Implements

Constructors

  • Creating a new provider instance

    Parameters

    • url: string

      URL to load the iframe from

    • widget: Widget

      Widget object

    • id: string

      Unique widget identifier

    • Optional reduceViewportChange: Debounce

      Method to debounce viewport change tracking

    Returns IFrameProvider

Methods

  • Get the current iframe element

    Returns HTMLIFrameElement

  • Initialization of the iframe provider

    Returns Promise<Promisify<EventEmitter<DefaultEventMap> & IFrameConsumerAPI>>

  • Subscription to changes in the visible area of the iframe

    Parameters

    Returns (() => void)

      • (): void
      • Returns void

Generated using TypeDoc