4 * Card header - holder for the card header elements.
9 * @class Roo.bootstrap.CardHeader
10 * @extends Roo.bootstrap.Element
11 * Bootstrap Element class
12 * @cfg {String} html contents of the element
13 * @cfg {String} tag tag of the element
14 * @cfg {String} cls class of the element
15 * @cfg {Boolean} preventDefault (true|false) default false
16 * @cfg {Boolean} clickable (true|false) default false
19 * Create a new Element
20 * @param {Object} config The config object
23 Roo.bootstrap.Element = function(config){
24 Roo.bootstrap.Element.superclass.constructor.call(this, config);
30 * When a element is chick
31 * @param {Roo.bootstrap.Element} this
32 * @param {Roo.EventObject} e
38 Roo.extend(Roo.bootstrap.Element, Roo.bootstrap.Component, {
43 preventDefault: false,
45 container_method : getCardHeader
47 getAutoCreate : function(){
51 // cls: this.cls, double assign in parent class Component.js :: onRender
58 initEvents: function()
60 Roo.bootstrap.Element.superclass.initEvents.call(this);
63 this.el.on('click', this.onClick, this);
70 if(this.preventDefault){
74 this.fireEvent('click', this, e);
79 return this.el.dom.innerHTML;
82 setValue : function(value)
84 this.el.dom.innerHTML = value;