From d000bd7d0618f3e481f186a6af84e87292649d98 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 31 Mar 2015 17:42:04 +0800 Subject: [PATCH] Roo/bootstrap/dash/TabBox.js --- Roo/bootstrap/dash/TabBox.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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'); -- 2.39.2