pressed : null,
-
+
getAutoCreate : function(){
this.el.select('.roo-button').on('click', this.onClick, this);
}
-
+ this.el.enableDisplayMode();
},
onClick : function(e)
this.fireEvent('click', this, e);
},
+
+ /**
+ * Enables this button
+ */
enable : function()
{
this.disabled = false;
this.el.removeClass('disabled');
},
+
+ /**
+ * Disable this button
+ */
disable : function()
{
this.disabled = true;
this.setActive(!active);
+ },
+ setText : function(str)
+ {
+ this.el.select('.roo-button-text',true).first().dom.innerHTML = str;
+ },
+ hide: function() {
+
+
+ this.el.hide();
+ },
+ show: function() {
+
+ this.el.show();
}
-
});
\ No newline at end of file