From: Alan Knowles Date: Tue, 31 Mar 2015 09:42:04 +0000 (+0800) Subject: Roo/bootstrap/dash/TabBox.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=d000bd7d0618f3e481f186a6af84e87292649d98;p=roojs1 Roo/bootstrap/dash/TabBox.js --- diff --git a/Roo/bootstrap/dash/TabBox.js b/Roo/bootstrap/dash/TabBox.js index e923cfdc6d..2ac6af5ede 100644 --- a/Roo/bootstrap/dash/TabBox.js +++ b/Roo/bootstrap/dash/TabBox.js @@ -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');