forum

Home / DeveloperSection / Forums / How to change background color of Ext.Msg.alert Sencha touch

How to change background color of Ext.Msg.alert Sencha touch

Samuel Fernandes 5011 03-Jun-2013
Hi,

I want to change the background color of alert message box in Sencha Touch but I don’t have any idea about it. By default Sencha Touch shows the black background color of alert box but I want to custom color. So please let me know what is correct way to perform this task?

Here I'm trying to add custom class with alert dialog box but it is not working.

CSS:

 .test{ Background-color: #d21c1c !important; }

Dialog code:

var dialog = Ext.Msg.alert("Custom alert box!"); 
dialog.getDialog().addClass('testcolor');

Thanks in advance. 


Updated on 03-Jun-2013

Can you answer this question?


Answer

1 Answers

Liked By