pressed : null,
-
- actionMode : 'el',
+
getAutoCreate : function(){
initEvents: function() {
// Roo.log('init events?');
// Roo.log(this.el.dom);
+
+ if (typeof (this.menu) != 'undefined') {
+ this.menu.parentType = this.xtype;
+ this.menu.triggerEl = this.el;
+ cn.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();
},
onClick : function(e)
},
hide: function() {
- this.el.
+
this.el.hide();
},
show: function() {