mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-31 16:51:47 +02:00
443 B
443 B
Click To Nav plugin
This plugin is included by default but disabled. In order to enable it, the option changeOnClick
must be passed as
true
.
const ws = new WebSlides({ changeOnClick: true });
This will make every click to navigate to the next slide except for clicks that happens on the following elements:
input
.select
oroption
.button
.a
.- Any element with the attribute
data-prevent-nav
.