Home > widget-integration > DefaultSuggestionData
DefaultSuggestionData interface
Default suggestion data built on initialization.
**Legacy**: Built in buildDefaultDataSuggestion() function **New**: Typed interface for the default data structure
Signature:
export interface DefaultSuggestionData
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
boolean |
Whether all results are empty | ||
|
Collections | |||
|
boolean |
Loading state | ||
|
string |
Money format with currency | ||
|
string |
Money format string | ||
|
Pages | |||
|
ProductItem[] |
Products | ||
|
string |
Current query | ||
|
Recent searches | |||
|
Record<string, string> |
Redirect mappings | ||
|
string |
No result search terms label | ||
|
string[] |
No result search terms list | ||
|
boolean |
No result search terms status | ||
|
string |
Search term suggestion label | ||
|
string[] |
Search term suggestion list | ||
|
boolean |
Search term suggestion status | ||
|
Suggestion blocks configuration | |||
|
"grid" | "list" |
Mobile product item type | ||
|
"style1" | "style2" |
Mobile suggestion style | ||
|
string[] |
Search suggestions | ||
|
number |
Total product count |