usablica / intro.js

Lightweight, user-friendly onboarding tour library
http://introjs.com
Other
22.8k stars 2.59k forks source link

callbacks are not working #628

Closed jothikannan closed 6 years ago

jothikannan commented 8 years ago

introJs().onhintsadded(function() { alert("all hints were added"); });

introJs().onhintclose(function() { alert("hint closed"); });

there callbacks are not working to me Workout

intellisense commented 7 years ago

Yeah I was having same issue looks like the way to do it is this:

var $hints = introJs().addHints();
$hints.onhintclose(function(e) {
  alert("Hint closed");
});