MMM-Carousel
MMM-Carousel copied to clipboard
[FEATURE REQUEST] changing transitionInterval value dynamically with notifications
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 is there an update on this? Would love to also implement this
Developer notes: reference https://github.com/shbatm/MMM-Carousel/blob/c368e895d38069ea100d35980ae871b6a0acc711/MMM-Carousel.js