Fix #6464 - card header
[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  * Bootstrap Header class
12  * @cfg {String} html content of header
13  * @cfg {Number} level (1|2|3|4|5|6) default 1
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         
36         
37         var cfg = {
38             tag: 'h' + (1 *this.level),
39             html: this.html || ''
40         } ;
41         
42         return cfg;
43     }
44    
45 });
46
47  
48
49