feat!: use 1-indexing for PaginationNav

- fix(PaginationNav): make 'change' event emit after user interaction instead of reactive event

BREAKING CHANGE: use 1-indexing for PaginationNav component
This commit is contained in:
Enrico Sacchetti 2022-10-12 00:20:08 -04:00
commit 120cd29513
7 changed files with 49 additions and 31 deletions

View file

@ -8431,7 +8431,7 @@
"kind": "let",
"description": "Specify the current page index",
"type": "number",
"value": "0",
"value": "1",
"isFunction": false,
"isFunctionDeclaration": false,
"isRequired": false,

View file

@ -7,8 +7,8 @@
<PaginationNav bind:page />
<div style="margin: var(--cds-layout-01) 0">
<Button on:click="{() => (page = 0)}" disabled="{page === 0}">
Set page to 0
<Button on:click="{() => (page = 1)}" disabled="{page === 0}">
Set page to 1
</Button>
</div>