Creates a new BaseWidget, not recommended to use directly, use the widget manager instead
The widget manager configuration
The element to attach the widget to
The widget manager API
Protected ReadonlyapiThe widget manager API
Protected ReadonlyconfigThe widget manager configuration
Protected ReadonlydebugThe short name used to identify this widget kind in debug tooling. Kept explicit rather than derived from the class name, which is not stable in the minified bundle.
ProtectedelThe element to attach the widget to
ProtectediframeThe iframe element
ProtectedlistenersProtected ReadonlyuiThe path to the iframe which will be appended to the uiBaseURL to get the full URL
Emits a message to the iframe
The message definition
The payload to send
this
Stops listening to a message from the iframe
The message definition
The handler to remove
this
Listens to a message from the iframe
The message definition
The handler to call when the message is received
this
ProtectedonLifecycle hooks for extending classes
The message event
Promise
Listens to a message from the iframe once
The message definition
The handler to call when the message is received
this
ProtectedpostProtectedpostProtectedpostProtectedpostProtectedpreProtectedpreProtectedpreProtectedpreSends a message to the iframe
The message to send
void
ProtectedtriggerTriggers all listeners for a given message type
The message type
The message envelope containing the payload
The SDK instance
The widget instance
A widget that renders the TECSAFE debug console, an iframe UI that shows the widget side of the SDK message exchange and can send arbitrary messages back to the SDK. Use it while integrating the SDK to confirm that messages arrive as expected; it is not meant for production pages.
See
TecsafeWidgetManager.createDebugWidget