View Full Version : Icon images now shown in the message box

6 Jun 2012, 7:41 PM
HI All,

I am using following code to show a message box. While the message box is coming, its not showing the required icon in the message box (like information, error etc.).

title: 'Error',
msg: 'Request has timedout',
buttons: Ext.Msg.OK,
icon: Ext.window.MessageBox.ERROR


6 Jun 2012, 9:19 PM
Try it :

Ext.Msg.show({ title: 'Information',
msg: 'Request cancelled',
buttons: Ext.Msg.OK,
icon: Ext.Msg.INFO

6 Jun 2012, 9:56 PM
HI Debabrata,

Thank you for the reply. I still dont see any image.But if I use following code its working.

icon: 'x-message-box-info'

I am not sure what difference it makes.

7 Jun 2012, 11:59 AM
Do you have any custom CSS that may be overriding the defaults to where you have to include it again in the icon property?


7 Jun 2012, 7:07 PM
Hi Scott,

Thank you for your reply. I am not overriding any of the deafult CSS. Even If I was doing that following code should not work(but its working in my case) . icon: 'x-message-box-info'