An EmbedWidget is displayed inline in part of your page.

To create an EmbedWidget use Widgets

Example

const widget = new EmbedWidget({ ... })
widget.load() // Loads widget into the DOM
widget.open() // Makes the iframe container visible
widget.close() // Hides the iframe container

Hierarchy

  • default
    • EmbedWidget

Constructors

Properties

analyticsApi: default
container: undefined | null | string | HTMLElement
content: string
context: WidgetContext
hide: (() => void) = ...

Type declaration

    • (): void
    • Returns void

loadEventListener: null | EventListener = null
npmCdn: string
show: (() => void) = ...

Type declaration

    • (): void
    • Un-hide if element is available and refresh data

      Returns void

type: string
widgetApi: WidgetApi

Methods

  • Returns HTMLIFrameElement

  • Returns null | HTMLIFrameElement

  • Reloads the current widget, makes updated request to API and renders result. Primarily for Classic widgets with registration

    Parameters

    • param0: Object

      Form field values

    • jwt: any

      JWT for API authentication

    Returns void

Generated using TypeDoc