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
You can use this function with or without specifying the entity. When you specify the entity, only the search results using that entity are returned.
|
Name |
Description |
|---|---|
|
|
String. ID of widget as configured in Sitecore Search. |
|
|
See following config object schema. |
Using the function with a specific entity.
|
Name |
Description |
|---|---|
|
|
String. ID of widget as configured in Sitecore Search. |
|
|
String. Used to filter search results for a specific entity type. |
|
|
See following config object schema. |
Config object
|
Name |
Description |
|---|---|
|
|
UI component to be configured into widget component |
|
|
Enumerator for widget type with following values:
|