#31 : Add progress indicator prop

This commit is contained in:
Vadim
2021-07-02 19:16:16 +03:00
parent ecca0c3892
commit 903f665197
4 changed files with 24 additions and 0 deletions

View File

@@ -86,6 +86,11 @@
*/ */
export let pauseOnFocus = true export let pauseOnFocus = true
/**
* Show autoplay duration progress indicator
*/
export let autoplayProgressVisible = false
/** /**
* Current page indicator dots * Current page indicator dots
*/ */

View File

@@ -47,6 +47,11 @@
*/ */
export let pauseOnFocus = false export let pauseOnFocus = false
/**
* Show autoplay duration progress indicator
*/
export let autoplayProgressVisible = false
/** /**
* Current page indicator dots * Current page indicator dots
*/ */
@@ -83,6 +88,7 @@
{autoplayDuration} {autoplayDuration}
{autoplayDirection} {autoplayDirection}
{pauseOnFocus} {pauseOnFocus}
{autoplayProgressVisible}
{dots} {dots}
on:pageChange={ on:pageChange={
event => console.log(`Current page index: ${event.detail}`) event => console.log(`Current page index: ${event.detail}`)
@@ -108,6 +114,7 @@
{autoplayDuration} {autoplayDuration}
{autoplayDirection} {autoplayDirection}
{pauseOnFocus} {pauseOnFocus}
{autoplayProgressVisible}
{dots} {dots}
> >
{#each colors2 as { color, text } (color)} {#each colors2 as { color, text } (color)}

View File

@@ -47,6 +47,11 @@
*/ */
export let pauseOnFocus = false export let pauseOnFocus = false
/**
* Show autoplay duration progress indicator
*/
export let autoplayProgressVisible = false
/** /**
* Current page indicator dots * Current page indicator dots
*/ */
@@ -77,6 +82,7 @@
{autoplayDuration} {autoplayDuration}
{autoplayDirection} {autoplayDirection}
{pauseOnFocus} {pauseOnFocus}
{autoplayProgressVisible}
{dots} {dots}
let:showPrevPage let:showPrevPage
let:showNextPage let:showNextPage

View File

@@ -47,6 +47,11 @@
*/ */
export let pauseOnFocus = false export let pauseOnFocus = false
/**
* Show autoplay duration progress indicator
*/
export let autoplayProgressVisible = false
/** /**
* Current page indicator dots * Current page indicator dots
*/ */
@@ -81,6 +86,7 @@
{autoplayDuration} {autoplayDuration}
{autoplayDirection} {autoplayDirection}
{pauseOnFocus} {pauseOnFocus}
{autoplayProgressVisible}
{dots} {dots}
let:currentPageIndex let:currentPageIndex
let:pagesCount let:pagesCount