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
18 * Create a new Element
19 * @param {Object} config The config object
22 Roo.bootstrap.Element = function(config){
23 Roo.bootstrap.Element.superclass.constructor.call(this, config);
29 * When a element is chick
30 * @param {Roo.bootstrap.Element} this
31 * @param {Roo.EventObject} e
37 Roo.extend(Roo.bootstrap.Element, Roo.bootstrap.Component, {
42 preventDefault: false,
44 getAutoCreate : function(){
55 initEvents: function()
57 Roo.bootstrap.Element.superclass.initEvents.call(this);
59 this.el.on('click', this.onClick, this);
65 if(this.preventDefault){
69 this.fireEvent('click', this, e);
74 return this.el.dom.innerHTML;
77 setValue : function(value)
79 this.el.dom.innerHTML = value;