To properly handle my carousel I use flickity.
It works fine, but I'm currently trying to navigate with custom buttons.
Docs say to call carousel.flickity("next")
- which I tried, but I doesn't seem to work.
import * as Flickity from 'flickity';
this.$elem = value.nativeElement;
this.carousel = new Flickity(this.$elem, {
accessibility: true,
prevNextButtons: false,
pageDots: false,
setGallerySize: false,
draggable: true,
freeScroll: true
});
Is there an equivalent to call the next event programmatically using javascript/typescript?