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
40 Roo.extend(Roo.bootstrap.Element, Roo.bootstrap.Component, {
45 preventDefault: false,
49 getAutoCreate : function(){
53 // cls: this.cls, double assign in parent class Component.js :: onRender
60 initEvents: function()
62 Roo.bootstrap.Element.superclass.initEvents.call(this);
65 this.el.on('click', this.onClick, this);
73 if(this.preventDefault){
77 this.fireEvent('dblclick', this, e);
87 return this.el.dom.innerHTML;
90 setValue : function(value)
92 this.el.dom.innerHTML = value;