pinafore/routes/_components/timeline/MoreHeader.html
Nolan Lawson 42be854521
upgrade to svelte 2.0 (#251)
* upgrade to svelte 2.0

* update svelte-loader to 2.9.0
2018-05-01 17:05:36 -07:00

25 lines
463 B
HTML

<div class="more-items-header">
<button class="primary" type="button" on:click="onClick(event)">
Show {count} more
</button>
</div>
<style>
.more-items-header {
display: flex;
padding: 5px;
align-items: center;
justify-content:center;
}
</style>
<script>
export default {
methods: {
onClick (event) {
let { onClick } = this.get()
if (onClick) {
onClick(event)
}
}
}
}
</script>