setWidget function
Use the setWidget high order function to configure UI components into widget components that can be added to the WidgetsProvider component.
Import path
Arguments
| Name | Description |
|---|---|
rfkId | String ID configured in the CEC. |
widget | See following widget object schema. |
Widget object
| Name | Description |
|---|---|
component | UI component to be configured into widget component |
type | Enumerator for widget type with following values:WidgetDataType.RECOMMENDATION, WidgetDataType.PREVIEW_SEARCH , or WidgetDataType.SEARCH_RESULTS |
Example
If you have suggestions for improving this article, let us know!