html: this.html
}
-
-
return cfg;
},
+ initEvents: function()
+ {
+
+ Roo.bootstrap.Element.superclass.initEvents.call(this);
+
+ this.el.on('click', this.onClick, this);
+
+ },
+
+ onClick : function(e)
+ {
+ if (this.disabled) {
+ return;
+ }
+
+ if(this.preventDefault){
+ e.preventDefault();
+ }
+
+ this.fireEvent('click', this, e);
+ },
+
getValue : function()
{
return this.el.dom.innerHTML;