mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(pagination-nav)!: use 1-indexing to be consistent with Pagination
(#1518)
Fixes #1513
This commit is contained in:
parent
9198ed5474
commit
8d55752a18
7 changed files with 49 additions and 31 deletions
|
@ -8437,7 +8437,7 @@
|
|||
"kind": "let",
|
||||
"description": "Specify the current page index",
|
||||
"type": "number",
|
||||
"value": "0",
|
||||
"value": "1",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
"isRequired": false,
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue