feat(pagination): dispatch change event

Whenever the user interacts with Pagination, `change` is dispatched
This commit is contained in:
Enrico Sacchetti 2022-09-26 16:50:21 -04:00
commit 7e64ee57de
5 changed files with 29 additions and 9 deletions

View file

@ -5,6 +5,9 @@
<Pagination
totalItems="{102}"
pageSizes="{[10, 15, 20]}"
on:change="{(e) => {
console.log(e.detail); // { pageSize?: number, page?: number }
}}"
on:update="{(e) => {
console.log(e.detail); // { pageSize: number; page: number; }
}}"