mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix(pagination-nav): type dispatched events
This commit is contained in:
parent
90bd2a10b7
commit
95901c270f
6 changed files with 50 additions and 16 deletions
|
@ -4,4 +4,16 @@
|
|||
|
||||
<PaginationNav />
|
||||
|
||||
<PaginationNav total="{3}" loop />
|
||||
<PaginationNav
|
||||
total="{3}"
|
||||
loop
|
||||
on:change="{(e) => {
|
||||
console.log(e.detail); // { page: number; }
|
||||
}}"
|
||||
on:click:button--next="{(e) => {
|
||||
console.log(e.detail); // { page: number; }
|
||||
}}"
|
||||
on:click:button--previous="{(e) => {
|
||||
console.log(e.detail); // { page: number; }
|
||||
}}"
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue