9 * @class Roo.bootstrap.Element
10 * @extends Roo.bootstrap.Component
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,
46 getAutoCreate : function(){
50 // cls: this.cls, double assign in parent class Component.js :: onRender
57 initEvents: function()
59 Roo.bootstrap.Element.superclass.initEvents.call(this);
62 this.el.on('click', this.onClick, this);
69 if(this.preventDefault){
73 this.fireEvent('click', this, e);
78 return this.el.dom.innerHTML;
81 setValue : function(value)
83 this.el.dom.innerHTML = value;