Roo/bootstrap/dash/TabBox.js
authorAlan Knowles <alan@roojs.com>
Tue, 31 Mar 2015 09:42:04 +0000 (17:42 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 31 Mar 2015 09:42:04 +0000 (17:42 +0800)
Roo/bootstrap/dash/TabBox.js

index e923cfd..2ac6af5 100644 (file)
@@ -29,7 +29,14 @@ Roo.bootstrap.dash.TabBox = function(config){
          * When a pane is added
          * @param {Roo.bootstrap.dash.TabPane} pane
          */
-        "addpane" : true
+        "addpane" : true,
+        /**
+         * @event activatepane
+         * When a pane is activated
+         * @param {Roo.bootstrap.dash.TabPane} pane
+         */
+        "activatepane" : true,
+        
          
     });
 };
@@ -144,7 +151,7 @@ Roo.extend(Roo.bootstrap.dash.TabBox, Roo.bootstrap.Component,  {
         this.getChildContainer().select('.tab-pane',true).removeClass('active');
         // technically we should have a deactivate event.. but maybe add later.
         // and it should not de-activate the selected tab...
-        
+        thie.fireEvent('activatepane', pane);
         pane.el.addClass('active');
         pane.fireEvent('activate');