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

Commit

Permalink
feat(playground): showcase stars in rating component
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrutjes committed Mar 14, 2017
1 parent 0919170 commit b46ae70
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/vue-algolia-playground/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@

<rating-facet attribute="rating">
<template scope="{value, min, max, count}">
{{value}}/{{max}} et plus ({{count}})
<template v-for="n in max">
<span v-if="n <= value">&#9733</span>
<span v-else>&#9734</span>
</template>
&amp; up ({{count}})
</template>
</rating-facet>




</div>
<div class="col-md-10 col-sm-9">
<div class="search-controls">
Expand Down

0 comments on commit b46ae70

Please sign in to comment.