withPageWidgets function
Use the withPageWidgets high order function to configure a widget component of widget components that renders based on page URL.
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!