Home > widget-integration > InstantSearchService > renderSuggestions
InstantSearchService.renderSuggestions() method
Render suggestions using template.
Signature:
renderSuggestions(template: string, data: SuggestionData): Promise<string>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
template |
string |
ISW template string |
|
data |
Suggestion data to render |
Returns:
Promise<string>
Promise resolving to rendered HTML