allow string based values for comboboxarray
[roojs1] / Roo / bootstrap / Header.js
index 757b0fc..9bd515a 100644 (file)
@@ -1,28 +1,28 @@
 /*
  * - LGPL
  *
- * row
+ * header
  * 
  */
+
 /**
  * @class Roo.bootstrap.Header
  * @extends Roo.bootstrap.Component
  * Bootstrap Header class
-  * @cfg {String} html content of header
-  * @cfg {Number} level (1|2|3|4|5|6|7) default 1
-    
-  }
+ * @cfg {String} html content of header
+ * @cfg {Number} level (1|2|3|4|5|6) default 1
+ * 
  * @constructor
  * Create a new Header
  * @param {Object} config The config object
  */
 
 
-Roo.bootstrap.Navbar.Button = function(config){
-    Roo.bootstrap.Navbar.Button.superclass.constructor.call(this, config);
+Roo.bootstrap.Header  = function(config){
+    Roo.bootstrap.Header.superclass.constructor.call(this, config);
 };
 
-Roo.extend(Roo.bootstrap.Navbar.Button, Roo.bootstrap.Component,  {
+Roo.extend(Roo.bootstrap.Header, Roo.bootstrap.Component,  {
     
     //href : false,
     html : false,
@@ -32,10 +32,11 @@ Roo.extend(Roo.bootstrap.Navbar.Button, Roo.bootstrap.Component,  {
     
     getAutoCreate : function(){
         
+        
+        
         var cfg = {
-            tag: 'h' + (1 *this.cfg.level),
-            html: this.html || 'fill in html'
-            
+            tag: 'h' + (1 *this.level),
+            html: this.html || ''
         } ;
         
         return cfg;