pinafore/routes/_components/timeline/MoreHeader.html

25 lines
465 B
HTML
Raw Normal View History

<div class="more-items-header">
2018-02-12 04:15:21 +01:00
<button class="primary" type="button" on:click="onClick(event)">
2018-03-10 19:54:16 +01: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) {
let { onClick } = this.get()
2018-02-12 04:15:21 +01:00
if (onClick) {
onClick(event)
}
}
}
}
</script>