mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix(pagination): type dispatched update event
This commit is contained in:
parent
317df90e6f
commit
ed8977beea
6 changed files with 79 additions and 63 deletions
|
@ -2,7 +2,13 @@
|
|||
import { Pagination, PaginationSkeleton } from "../types";
|
||||
</script>
|
||||
|
||||
<Pagination totalItems="{102}" pageSizes="{[10, 15, 20]}" />
|
||||
<Pagination
|
||||
totalItems="{102}"
|
||||
pageSizes="{[10, 15, 20]}"
|
||||
on:update="{(e) => {
|
||||
console.log(e.detail); // { pageSize: number; page: number; }
|
||||
}}"
|
||||
/>
|
||||
|
||||
<Pagination totalItems="{102}" page="{4}" />
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue