Roo/bootstrap/TabPanel.js
authorAlan Knowles <alan@roojs.com>
Tue, 22 Jul 2014 08:15:58 +0000 (16:15 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 22 Jul 2014 08:15:58 +0000 (16:15 +0800)
Roo/bootstrap/TabPanel.js

index 8dba97c..bdf280e 100644 (file)
@@ -61,9 +61,18 @@ Roo.extend(Roo.bootstrap.TabPanel, Roo.bootstrap.Component,  {
             }, this);
         }
         
+    },
+    setActive: function(state)
+    {
+        this.active = state;
+        if (!state) {
+            this.el.removeClass('active');
+            
+        } else  if (!this.el.hasClass('active')) {
+            this.el.addClass('active');
+        }
+        this.fireEvent('changed', this, state);
     }
-        
-    
     
     
 });