beforeTabChange

Called after the user clicks on any tab, immediately before selecting the tab page. The event listener function may return false to veto the tab page change.

Parameters:

  • tabPanel (reference): this tab panel reference;
  • currentTabName (String): name of the previously selected tab page;
  • newTabName (String): name of the tab page to be selected;


Example:

This event listener is auto-wired according to a naming convention (" panelId_eventType "):

tabs_beforeTabChange: function() {
...
}