Move getting indexes to utils

This commit is contained in:
Vadim
2021-01-20 18:06:11 +03:00
parent c8f0e419b4
commit 9dfcf6918d
5 changed files with 58 additions and 12 deletions

View File

@@ -7,6 +7,11 @@
* Enable Next/Prev arrows
*/
export let arrows = true;
/**
* Infinite looping
*/
export let infinite = true;
let contentContainerElement
let children
@@ -15,10 +20,10 @@
})
function handlePrevClick() {
store.prev()
store.prev({ infinite })
}
function handleNextClick() {
store.next()
store.next({ infinite })
}
</script>