sorich87 / bootstrap-tour

Quick and easy product tours with Twitter Bootstrap Popovers
http://bootstraptour.com
MIT License
4.44k stars 941 forks source link

Add an onElementNotFound() event #691

Open Nerpson opened 6 years ago

Nerpson commented 6 years ago

Hello,

Such event would be really useful, especially in my case when I'm using a JS page scroller. This would help me to know that the page scroller isn't fully loaded yet.

new Tour({
   [...],
    onElementNotFound: function() {
        scroller.doSmth();
    },
    [...]
});

Regards

IGreatlyDislikeJavascript commented 5 years ago

onElementUnavailable: option added to my fork

https://github.com/IGreatlyDislikeJavascript/bootstrap-tour https://github.com/IGreatlyDislikeJavascript/bootstrap-tour/blob/master/build/js/bootstrap-tour.js