mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
feat!: dispatch "change" event in Pagination
, rename "change" to "update" in Select
(#1497)
Closes #1491 * feat(pagination): dispatch "change" event when interacting with previous/next buttons, page/page size dropdowns * breaking(select): rename dispatched "change" event to "update" * breaking(select): forward `change` event to `Select`
This commit is contained in:
parent
724d90bd7b
commit
9198ed5474
9 changed files with 76 additions and 23 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