The PopupWidget is used to display popups (also known as "Modals"). Popups widgets are rendered on top of other elements in a page.

To create a PopupWidget use Widgets

Example

const widget = new PopupWidget({ ... })
widget.load() // Loads the widget into a dialog element
widget.open() // Opens the dialog element
widget.close() // Hides the dialog element

Hierarchy

  • default
    • PopupWidget

Constructors

Properties

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

Type declaration

    • (): void
    • Returns void

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

Type declaration

    • (): void
    • Returns void

trigger: null | string
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