Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
feat(search-facet): add a slot to override label
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrutjes committed Mar 15, 2017
1 parent 19f3e19 commit f78b8a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/vue-algolia-search-facet/src/SearchFacet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@
@change="toggleRefinement(facet)"
:value="facet.name"
>
<span class="alg-search-facet__value">{{facet.name}}</span>
<span class="alg-search-facet__count">({{facet.count}})</span>

<slot :count="facet.count" :active="facet.isRefined" :value="facet.name">
<span class="alg-search-facet__value">{{facet.name}}</span>
<span class="alg-search-facet__count">({{facet.count}})</span>
</slot>
</label>
</li>
</ul>
Expand Down

0 comments on commit f78b8a0

Please sign in to comment.