Home > DeveloperSection > Forums > How to chnage backcolor of alert box in sencha?
Alex Leblois
Alex Leblois

Total Post:67

Points:471
Posted on    May-30-2013 4:06 AM

 Sencha Touch Sencha Touch 
Ratings:


 1 Reply(s)
 877  View(s)
Rate this:

I got an issue with the alert box of sencha touch control. Issue is: I would like to change background color of alert box, I tried to implement CSS but its not letting me to do it.

Is there any other way to change background color of alert box in sencha?

Early reply will be appreciated!

Thanks



Arun Singh

Total Post:68

Points:476
Posted on    May-30-2013 4:43 AM

Hi Alex,

You can perform this task as follows:

var msg = new Ext.MessageBox();
msg.show({
title: 'Hello World',
msg: 'Testing code',
buttons: [{text:'Sure',itemId:'Ok'}],
style:'background-color:blue;'
});

I hope this code might be resolve your problem.


Don't want to miss updates? Please click the below button!

Follow MindStick