From a32e38ce75d5955cf89c8a75790903b7a426246b Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Thu, 1 Nov 2018 17:36:20 +0100 Subject: [PATCH] feat(RefinementList): provide SFFV query to default stot IFW-210 --- docs/src/components/RefinementList.md | 2 +- src/components/RefinementList.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/components/RefinementList.md b/docs/src/components/RefinementList.md index 0464565eb..ed6833e5b 100644 --- a/docs/src/components/RefinementList.md +++ b/docs/src/components/RefinementList.md @@ -37,7 +37,7 @@ class-names | Object | `{}` | Override class names | no Name | Scope | Description ---|---|--- -default | `{ items: Array, refine: (Item.value) => void, searchable: Boolean, searchForItems: Function, isFromSearch: Boolean, toggleShowMore: Function, isShowingMore: Boolean, createURL: Function, canRefine: Boolean, noRefinement: Boolean }` | Slot to override the DOM output +default | `{ items: Array, refine: (Item.value) => void, searchable: Boolean, searchForItemsQuery: String, searchForItems: (String) => void, isFromSearch: Boolean, toggleShowMore: Function, isShowingMore: Boolean, createURL: Function, canRefine: Boolean, noRefinement: Boolean }` | Slot to override the DOM output item | `{ item: Item, refine: (Item.value) => void, createURL: (Item) => String }` | Slot to override the DOM of a single item in the list showMoreLabel | `{ isShowingMore: Boolean }` | Slot to override the text shown in the "show more" button noResults | `{ query: String }` | Slot to override the text shown when "searchable" is true and there are no results diff --git a/src/components/RefinementList.vue b/src/components/RefinementList.vue index 7323108b0..a3ffbc3cb 100644 --- a/src/components/RefinementList.vue +++ b/src/components/RefinementList.vue @@ -10,6 +10,7 @@ :items="items" :refine="refine" :search-for-items="state.searchForItems" + :search-for-items-query="searchForFacetValuesQuery" :toggle-show-more="toggleShowMore" :is-showing-more="state.isShowingMore" :createURL="state.createURL"