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

Commit

Permalink
feat(playground): add slot overriding example for ranged pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrutjes committed Mar 15, 2017
1 parent 85ac789 commit dd084a8
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion packages/vue-algolia-playground/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,13 @@
<div class="clearfix"></div>

<div class="pagination-container">
<ranged-pagination class="pagination"></ranged-pagination>
<ranged-pagination class="pagination">
<template slot="first">&lt; First page</template>
<template slot="previous">&lt; Previous page</template>
<template scope="{value, active}">{{value + 1}}</template>
<template slot="next">&gt; Next page</template>
<template slot="last">&gt; Last page</template>
</ranged-pagination>
</div>
</div>
</div>
Expand Down Expand Up @@ -389,6 +395,15 @@
}
}
button {
border: none;
background: none;
&:hover {
text-decoration: underline;
}
}
.alg-ranged-pagination__item--active label {
font-weight: bold;
}
Expand Down

0 comments on commit dd084a8

Please sign in to comment.