docs/symbols/src/Roo_form_BasicForm.js.html
[roojs1] / Roo / bootstrap / Header.js
1 /*
2  * - LGPL
3  *
4  * row
5  * 
6  */
7 /**
8  * @class Roo.bootstrap.Header
9  * @extends Roo.bootstrap.Component
10  * Bootstrap Header class
11   * @cfg {String} html content of header
12   * @cfg {Number} level (1|2|3|4|5|6|7) default 1
13     
14   }
15  * @constructor
16  * Create a new Header
17  * @param {Object} config The config object
18  */
19
20
21 Roo.bootstrap.Header  = function(config){
22     Roo.bootstrap.Header.superclass.constructor.call(this, config);
23 };
24
25 Roo.extend(Roo.bootstrap.Header, Roo.bootstrap.Component,  {
26     
27     //href : false,
28     html : false,
29     level : 1,
30     
31     
32     
33     getAutoCreate : function(){
34         
35         var cfg = {
36             tag: 'h' + (1 *this.cfg.level),
37             html: this.html || 'fill in html'
38         } ;
39         
40         return cfg;
41     }
42    
43 });
44
45  
46
47