} else {
cfg.tag = this.tag;
}
- cfg.html = '<div class="roo-button-text">' + (this.html || cfg.html) + '</div>';
+ cfg.html = '<span class="roo-button-text">' + (this.html || cfg.html) + '</span>';
if (this.toggle == true) {
cfg={
initEvents: function() {
// Roo.log('init events?');
// Roo.log(this.el.dom);
+ // add the menu...
+
+ if (typeof (this.menu) != 'undefined') {
+ this.menu.parentType = this.xtype;
+ this.menu.triggerEl = this.el;
+ this.addxtype(Roo.apply({}, this.menu));
+ }
+
+
if (this.el.hasClass('roo-button')) {
this.el.on('click', this.onClick, this);
} else {
this.el.select('.roo-button').on('click', this.onClick, this);
}
+ if(this.removeClass){
+ this.el.on('click', this.onClick, this);
+ }
+
this.el.enableDisplayMode();
},