carousel: restart autoplay

UI Components for React
Post Reply
tfatout@verizon.net
Posts: 1
Joined: 14 Nov 2017, 20:59

10 Aug 2020, 18:33

I have found that when a caorusel is in autoplay and user clicks on direction arrows or bottom select autoplay stops.

Is there a way to restart autoplay - maybe after a time interval?

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

10 Oct 2020, 23:25

Hi,

Sorry for the delayed response! Please use startAutoplay method;

Code: Select all

this.myCarousel.startAutoplay();

<Carousel ref={(el) => this.myCarousel = el} .../>
Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests