mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +00:00
feat(pagination): dispatch change event
Whenever the user interacts with Pagination, `change` is dispatched
This commit is contained in:
parent
29a83c325c
commit
7e64ee57de
5 changed files with 29 additions and 9 deletions
|
@ -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; }
|
||||
}}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue