1
0
mirror of https://github.com/webslides/WebSlides.git synced 2025-08-31 16:51:47 +02:00
Files
webslides/docs/click-to-nav.md
Antonio Laguna bc64fcef7e Adding more docs
2017-02-27 20:14:41 +01:00

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 or option.
  • button.
  • a.
  • Any element with the attribute data-prevent-nav.