Product List
The vviinn-results component displays search results on the page. It works in two modes:
Event-Based (Default)
Section titled “Event-Based (Default)”Place vviinn-results on the same page as vviinn-text-search or vviinn-vps-button. The components communicate through events (vviinnTextSearchStarted, vviinnImageUploadFinished) and a shared store. No additional configuration needed.
You can also trigger a search directly by setting text-search-query or search-id props on vviinn-results.
Automatic Redirect with URL Parameters
Section titled “Automatic Redirect with URL Parameters”When search components (vviinn-text-search, vviinn-vps-button) have results-page-url set, they redirect the user to a dedicated results page with URL parameters:
- Text search:
/results?query=shoes - Image search:
/results?searchId=abc-123
The vviinn-results component with results-page-url set automatically parses these parameters on page load and triggers the corresponding search.
If text-search-query or search-id props are set explicitly, they take priority over URL parameters.
Examples
Section titled “Examples”Text Search
Section titled “Text Search”Results triggered by a text search query through the text-search-query prop.
Filter Column
Section titled “Filter Column”Results filtered by the product_type column for Möbel > Schränke & Regale using the filter-value prop.