VinceG / twitter-bootstrap-wizard

This twitter bootstrap plugin builds a wizard out of a formatter tabbable structure. It allows to build a wizard functionality using buttons to go through the different wizard steps and using events allows to hook into each step individually.
MIT License
1.39k stars 676 forks source link

Calling .bootstrapWizard('previous') does not seem to trigger onTabShow event. #185

Open AronDavis opened 8 years ago

jiggneshhgohel commented 7 years ago

@AronDavis Did you found a solution to this? I am using version version 1.3.1

AronDavis commented 7 years ago

@jiggneshhgohel I don't remember if I did, but you can probably rig something with jQuery to have it trigger the event.

jiggneshhgohel commented 7 years ago

Thanks @AronDavis for your prompt response and suggestion. I will try everything I can because this behaviour is hampering one of the critical features in my application.

@VinceG if you can be kind enough to comment along it would be a great help.

Thanks.

VinceG commented 7 years ago

@jiggneshhgohel Yes it won't call on tab show when you use previous/next events. You can call reset which will trigger the ontabshow but will also detach and reattach the handlers.

jiggneshhgohel commented 7 years ago

Thanks @VinceG. I will try your suggested solution.

jiggneshhgohel commented 7 years ago

I solved my problem using the combination of onNext and onPrevious and OnTabShow events callback as demonstrated in the examples https://github.com/VinceG/twitter-bootstrap-wizard/blob/1.3.1/examples/basic-formvalidation.html#L157

I added 1.3.1 version examples link because I am using 1.3.1 version in my application.

Thanks for all the support.