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