Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intro.js - any way to prevent closing of tour when clicking outside?

Wanted to incorporate the intro.js tour plugin but when checking out the plugin, the document didn't highlight any way of preventing the closing of the tour by a click outside the tour section. I would rather have a "End Tour" button which the user can click to end the tour rather than them clicking outside by mistake and then having to start all over again.

like image 505
Sam Avatar asked Jun 26 '14 12:06

Sam


1 Answers

Set option exitOnOverlayClick to false before you call start:

introJs().setOptions({
  exitOnOverlayClick: false
}).start();

Here are all the available options.

like image 150
Gildor Avatar answered Oct 13 '22 00:10

Gildor