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
17 * Create a new Element
18 * @param {Object} config The config object
21 Roo.bootstrap.Element = function(config){
22 Roo.bootstrap.Element.superclass.constructor.call(this, config);
25 Roo.extend(Roo.bootstrap.Element, Roo.bootstrap.Component, {
32 getAutoCreate : function(){
43 initEvents: function()
46 Roo.bootstrap.Element.superclass.initEvents.call(this);
48 this.el.on('click', this.onClick, this);
58 if(this.preventDefault){
62 this.fireEvent('click', this, e);
67 return this.el.dom.innerHTML;
70 setValue : function(value)
72 this.el.dom.innerHTML = value;