A widget that promotes the TECSAFE Layout configurator on a custom page, e.g. a blog post, landing page, etc. Use when a no clear product context exists - which is usually the case for generic demos or custom foam configurations.

Hierarchy (view full)

Constructors

Properties

The widget manager API

The widget manager configuration

contextId?: string

The context ID of the custom page, if not provided, the widget will show a generic start page

el: HTMLElement

The element to attach the widget to

iframe: HTMLIFrameElement = null

The iframe element

listeners: Map<string, MessageEventHandler<any>[]> = ...
uiPath: "custom-page" = 'custom-page'

The path to the iframe which will be appended to the uiBaseURL to get the full URL

Methods

  • 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