#31 : Add progress indicator prop
This commit is contained in:
@@ -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
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -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)}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user