View Full Version : PaginToolBar - replace refresh icon with text

31 Oct 2009, 10:54 PM
Hi All,
Can someone please post a snippet on how to replace the refresh icon with a text button? (also for the paginToolBar in a combobox)
I tried override several methods but I get exceptions.

1 Nov 2009, 4:56 AM
Why don't you just replace the icon image with an image of the text... quickest thing I can think of

1 Nov 2009, 5:13 AM
This is my solution:

Ext.override(Ext.PagingToolbar, {
addButton : function(config){
if (config.iconCls && config.iconCls == "x-tbar-loading"){
config2 = {text: this.refreshText, tooltip: this.refreshText, handler: this.onClick.createDelegate(this, ["refresh"])};
return Ext.PagingToolbar.superclass.addButton.call(this, config2);
return Ext.PagingToolbar.superclass.addButton.call(this, config);