* @cfg {String} tag tag of the element
* @cfg {String} cls class of the element
* @cfg {Boolean} preventDefault (true|false) default false
+ * @cfg {Boolean} clickable (true|false) default false
*
* @constructor
* Create a new Element
cls: '',
html: '',
preventDefault: false,
+ clickable: false,
getAutoCreate : function(){
var cfg = {
tag: this.tag,
- cls: this.cls,
+ // cls: this.cls, double assign in parent class Component.js :: onRender
html: this.html
- }
+ };
return cfg;
},
{
Roo.bootstrap.Element.superclass.initEvents.call(this);
- this.el.on('click', this.onClick, this);
+ if(this.clickable){
+ this.el.on('click', this.onClick, this);
+ }
},