MMM-Carousel icon indicating copy to clipboard operation
MMM-Carousel copied to clipboard

[FEATURE REQUEST] changing transitionInterval value dynamically with notifications

Open acimail01 opened this issue 5 years ago • 2 comments

Is it possible to dynamically change the transitionInterval via notification, so that you can switch between manual and automatic navigation?

like:

if (notification === "CAROUSEL_TIMER_TOGGLE") {
	if (this.config.transitionInterval <= 0) {
		this.config.transitionInterval = 10000; // <-- any default value
		this.restartTimer();                    // <--start automatic mode
	} else {
		this.config.transitionInterval = 0;    // <--stop automatic mode
		???                                   // <-- start manual mode
	}
}

acimail01 avatar Oct 04 '19 13:10 acimail01

@acimail01 is there an update on this? Would love to also implement this

JoshuaEPSamuel avatar Jul 27 '20 16:07 JoshuaEPSamuel

Developer notes: reference https://github.com/shbatm/MMM-Carousel/blob/c368e895d38069ea100d35980ae871b6a0acc711/MMM-Carousel.js

shbatm avatar Feb 01 '22 02:02 shbatm