Roo/bootstrap/CardHeader.js
[roojs1] / Roo / bootstrap / CardHeader.js
1 /*
2  * - LGPL
3  *
4  * Card header - holder for the card header elements.
5  * 
6  */
7
8 /**
9  * @class Roo.bootstrap.CardHeader
10  * @extends Roo.bootstrap.Element
11  * Bootstrap Element class
12  * @constructor
13  * Create a new Element
14  * @param {Object} config The config object
15  */
16
17 Roo.bootstrap.Element = function(config){
18     Roo.bootstrap.Element.superclass.constructor.call(this, config);
19     
20     this.addEvents({
21         // raw events
22         /**
23          * @event click
24          * When a element is chick
25          * @param {Roo.bootstrap.Element} this
26          * @param {Roo.EventObject} e
27          */
28         "click" : true
29     });
30 };
31
32 Roo.extend(Roo.bootstrap.Element, Roo.bootstrap.Component,  {
33     
34     tag: 'div',
35     container_method : 'getCardHeader',
36     
37     getAutoCreate : function() {
38         
39         var cfg = {
40             tag: 'div',
41             cls : 'card-header'
42         };
43         
44         return cfg;
45     } 
46     
47     
48    
49 });
50
51  
52
53