Unlike with the toolbar menu item config, the button config icon path setting requires it to be URL-encoded.

I can't seem to get my icon to show for this toolbar button.

toolbar.add( new Ext.Toolbar.Button({
cls: "x-btn-text-icon", icon: "../images/icons/Chart Bar.png", iconMask: true, id: "query_attributes", text: "Query Attributes"
}) );
This icon path setting works perfectly well when used in a toolbar menu. But when I use it for a toolbar button, indicating "iconMask: true" as another thread here suggested was required, it shows only the text on the button. There is no image.

Can anyone tell me if this is an ExtJS 2.3 bug, or otherwise what I am doing wrong here?


Paul Sumares