clu3 / bootstro.js

Tiny JS library using bootstrap's popovers to help guide your users around your website
http://clu3.github.io/bootstro.js/
MIT License
1.33k stars 235 forks source link

onStart() callback #26

Closed tejasGosai closed 11 years ago

tejasGosai commented 11 years ago

First of all, this library is awesome. Now my problem is I want to add a class when tour starts.

I saw callbacks like onstep(), onexit(). is there anything like onStart().

like bootstro.start()... and i want to add class to the popover it creates.

clu3 commented 11 years ago

@tejasGosai Thanks for the complement. Yes, that's right, there should have been an onStart callback You can however add it, just like onStep function . Something like this

https://gist.github.com/clu3/5914580 I will add those 2 lines to the code & test it later

tejasGosai commented 11 years ago

Thanks, that worked easily.