Building a Purple Experience
Components

Widget Component

4min

Purple Experience



Summary

The Widget component can be used to display generic widgets that require injecting HTML and resources (script, style) directly into the DOM. Examples of such Widgets are 'weekli' or 'outbrain'.



Preconditions

Configure the widget library within the 'generic-widget.json' file of the dynamic resources. For detailed instructions on how to configure, please refer to this documentation.



Configuration

The widget Component can be configured in any view in the views.json.

The widget Component can be configured in any view in the views.json


Field

Description

name*

Specify library name

widgetId*

Specify the ID for the widget from the library.

bidirectionalRouter

Bidirectional feature parameter for the widget: When activated, this feature facilitates bidirectional routing communication between the Experience and the widget.

* = required field