Minor updates
This commit is contained in:
24
src/components/Dots/DotsView.svelte
Normal file
24
src/components/Dots/DotsView.svelte
Normal file
@@ -0,0 +1,24 @@
|
||||
<script>
|
||||
import Dots from './Dots.svelte'
|
||||
|
||||
/**
|
||||
* Amount of pages (amount of dots)
|
||||
*/
|
||||
export let pagesCount = 5
|
||||
|
||||
/**
|
||||
* Index of the current page
|
||||
*/
|
||||
export let currentPageIndex = 3
|
||||
|
||||
function handlePageChange(event) {
|
||||
currentPageIndex = event.detail
|
||||
}
|
||||
</script>
|
||||
|
||||
<Dots
|
||||
{pagesCount}
|
||||
{currentPageIndex}
|
||||
on:pageChange={handlePageChange}
|
||||
>
|
||||
</Dots>
|
||||
Reference in New Issue
Block a user