Roo/bootstrap/dash/TabPane.js
authorEdward <edward@roojs.com>
Tue, 2 Dec 2014 09:39:43 +0000 (17:39 +0800)
committerEdward <edward@roojs.com>
Tue, 2 Dec 2014 09:39:43 +0000 (17:39 +0800)
Roo/bootstrap/dash/TabBox.js

Roo/bootstrap/dash/TabBox.js
Roo/bootstrap/dash/TabPane.js

index d5920f3..e9b9324 100644 (file)
@@ -22,15 +22,6 @@ Roo.bootstrap.dash = Roo.bootstrap.dash || {};
 Roo.bootstrap.dash.TabBox = function(config){
     Roo.bootstrap.dash.TabBox.superclass.constructor.call(this, config);
     
-    this.addEvents({
-        // img events
-        /**
-         * @event click
-         * The img click event for the img.
-         * @param {Roo.EventObject} e
-         */
-        "click" : true
-    });
 };
 
 Roo.extend(Roo.bootstrap.dash.TabBox, Roo.bootstrap.Component,  {
@@ -75,27 +66,8 @@ Roo.extend(Roo.bootstrap.dash.TabBox, Roo.bootstrap.Component,  {
         }
 
         return  cfg;
-    },
-    
-    initEvents: function() {
-        
-//        var _this = this;
-//        Roo.each(_this.el.select('li',true).elements, function(el){
-//            Roo.log(el);
-//            el.on('click', _this.onClick, el);
-//        })
-    },
-    
-    onClick : function(e)
-    {
-//        Roo.log('img onclick');
-//
-//        this.findParent('ul',false, true).select('li.active').removeClass('active');
-//        this.addClass('active');
-//        Roo.log(this);
-
     }
-   
+    
 });
 
  
index 61beb31..b7e0df0 100644 (file)
@@ -9,32 +9,17 @@ Roo.bootstrap.dash = Roo.bootstrap.dash || {};
  * @class Roo.bootstrap.TabPane
  * @extends Roo.bootstrap.Component
  * Bootstrap TabPane class
- * @cfg {String} align left | right
- * @cfg {Boolean} inverse false | true
- * @cfg {String} type (nav|pills|tab) default nav
- * @cfg {String} navId - reference Id for navbar.
+ * @cfg {Boolean} active (false | true) Default false
 
  * 
  * @constructor
- * Create a new nav group
+ * Create a new TabPane
  * @param {Object} config The config object
  */
 
 Roo.bootstrap.dash.TabPane = function(config){
     Roo.bootstrap.dash.TabPane.superclass.constructor.call(this, config);
     
-    //Roo.bootstrap.TabPane.register(this);
-     this.addEvents({
-        /**
-            * @event changed
-            * Fires when the active item changes
-            * @param {Roo.bootstrap.TabPane} this
-            * @param {Roo.bootstrap.Navbar.Item} item The item selected
-            * @param {Roo.bootstrap.Navbar.Item} item The previously selected item 
-         */
-        //'changed': true
-     });
-    
 };
 
 Roo.extend(Roo.bootstrap.dash.TabPane, Roo.bootstrap.Component,  {
@@ -47,14 +32,10 @@ Roo.extend(Roo.bootstrap.dash.TabPane, Roo.bootstrap.Component,  {
     // private
     
   
-    getAutoCreate : function()
-    {
-        
-        Roo.log(this);
-        cfg = {
+    getAutoCreate : function() {
+        var cfg = {
             tag: 'div',
-            cls: 'tab-content no-padding',
-            html: null
+            cls: 'tab-pane',
         }