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

OnTabClick Event should include not only the currentTab, but also the tab you clicked #92

Closed JohnBergman closed 8 years ago

JohnBergman commented 10 years ago

while working with the wizard, I discovered that the OnTabClick event does not include any information about what the next page is that you are navigating to. The other events, NextTab/PreviousTab this information can be inferred.

neuhoffm commented 10 years ago

I agree, this is something I need as well.

VinceG commented 10 years ago

@JohnBergman @neuhoffm Anyone want to try and create a pull request?

amitpatelx commented 8 years ago

Can anybody please update if we can get index of clicked tab?

onTabClick: function(tab, navigation, index){
  alert(index);
}

displays wrong index number. Clicking on same tab again shows correct tab index.