PDA

View Full Version : Setting common title icon by using css



vinothsencha
26 Sep 2013, 9:27 AM
I need to set a common title icon for all message boxes (Ext.Msg) by using css.

For example, To modify the title text style, we can use the following
.x-message-box.x-window-header-text
{ margin: 20px; }

I tried the following to set common icon but it is not working
.x-message-box .x-window-header-icon
{
background-image: url('icon.png');
background-repeat: no-repeat;
}

Can someone tell me how to do this?

Thanks in advance

ettavolt
29 Sep 2013, 9:59 PM
Why don't you use Ext.Msg.header.setIconCls?