ais-state-results
<ais-state-results // Optional parameters :catch-error="boolean" />
1
2
3
4
5
6
7
8
9
import { AisStateResults } from 'vue-instantsearch';
// Use 'vue-instantsearch/vue3/es' for Vue 3
export default {
components: {
AisStateResults
},
// ...
};
1. Follow additional steps in Optimize build size to ensure your code is correctly bundled.
2. This imports all the widgets, even the ones you don’t use. Read the Getting started guide for more information.
About this widget
The ais-state-results
allows you reach into the current search state, for example, for conditional rendering or other rendering that depends on what the current refinement or results are.
Examples
1
<ais-state-results />
Props
Parameter | Description |
---|---|
catch-error
|
type: boolean
default: false
If |
Customize the UI
Parameter | Description | ||
---|---|---|---|
default
|
The slot to override the complete DOM output of the widget. Note that when you implement this slot, none of the other slots will change the output, as the default slot surrounds them. ScopeThe scope is an object with the keys
|
||
Copy
|