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

Commit

Permalink
feat(navigation-tree): introduce a slot to allow overriding of labels
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrutjes committed Mar 15, 2017
1 parent 19f3e19 commit 1e278a0
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
:value="facet.name"
:name="name + '[]'"
>
<span class="alg-navigation-tree-facet__value">{{facet.name}}</span>
<span class="alg-navigation-tree-facet__count">({{facet.count}})</span>
<slot :value="facet.name" :count="facet.count" :active="facet.isRefined">
<span class="alg-navigation-tree-facet__value">{{facet.name}}</span>
<span class="alg-navigation-tree-facet__count">({{facet.count}})</span>
</slot>
</label>

<template v-if="facet.isRefined && facet.data.length > 0">
Expand All @@ -31,8 +33,10 @@
:value="subfacet.name"
:name="name + '[]'"
>
<span class="alg-navigation-tree-facet__value">{{subfacet.name}}</span>
<span class="alg-navigation-tree-facet__count">({{subfacet.count}})</span>
<slot :value="subfacet.name" :count="subfacet.count" :active="subfacet.isRefined">
<span class="alg-navigation-tree-facet__value">{{subfacet.name}}</span>
<span class="alg-navigation-tree-facet__count">({{subfacet.count}})</span>
</slot>
</label>
</li>
</ul>
Expand Down

0 comments on commit 1e278a0

Please sign in to comment.