HOW TO CHANGE BACKCOLOR OF ALERT BOX IN SENCHA?

Samuel Fernandes

Total Post:159

Points:1117
Posted by  Samuel Fernandes
 1234  View(s)
Ratings:
Rate this:
Hi Expert! 

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.
  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: How to change backcolor of alert box in Sencha?

    Hi Samuel,


    Use below css classes to change MessageBox bg color and MessageBox text properties.

    // To change messagebox background color

    .x-msgbox
     {
        background-color: #fff;
     }

    // To change messagebox text properties

     .x-msgbox-dark .x-msgbox-text {
        color: #000 !important;
        font-size: 14px;
        font-family: Helvetica, Arial, sans-serif;
    }

    // To change messagebox title

    .x-toolbar-dark .x-title {
        color:#000 !important;
        font-size: 20px !important;
        font-family: Helvetica, Arial, sans-serif;
    }

    I hope it resolve your problem. 

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!