mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 03:49: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
3
types/Pagination/Pagination.svelte.d.ts
vendored
3
types/Pagination/Pagination.svelte.d.ts
vendored
|
@ -103,9 +103,10 @@ export interface PaginationProps
|
|||
export default class Pagination extends SvelteComponentTyped<
|
||||
PaginationProps,
|
||||
{
|
||||
update: CustomEvent<{ pageSize: number; page: number }>;
|
||||
change: CustomEvent<{ page?: number; pageSize?: number }>;
|
||||
["click:button--previous"]: CustomEvent<{ page: number }>;
|
||||
["click:button--next"]: CustomEvent<{ page: number }>;
|
||||
update: CustomEvent<{ pageSize: number; page: number }>;
|
||||
},
|
||||
{}
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue