2018-04-11 07:09:07 +02:00
|
|
|
<div class="more-items-header">
|
2018-02-12 04:15:21 +01:00
|
|
|
<button class="primary" type="button" on:click="onClick(event)">
|
2018-05-02 02:05:36 +02:00
|
|
|
Show {count} more
|
2018-02-12 04:15:21 +01:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<style>
|
|
|
|
.more-items-header {
|
|
|
|
display: flex;
|
|
|
|
padding: 5px;
|
|
|
|
align-items: center;
|
|
|
|
justify-content:center;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
methods: {
|
2018-04-20 06:38:01 +02:00
|
|
|
onClick (event) {
|
2018-04-19 18:37:05 +02:00
|
|
|
let { onClick } = this.get()
|
2018-02-12 04:15:21 +01:00
|
|
|
if (onClick) {
|
|
|
|
onClick(event)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|