Sencha Touch Panel Background Color Change

I am trying to change the background color of a panel.

See code:

panel: {
            centered: true,
            width: 200,
            height: 150,
            style: 'background-color: red',
            fullscreen: false,
            hidden: true,
            zIndex: 10,

       }

but style: 'background-color: red' does not fulfill my requirements. it changes the color of the border of the panel, only the incomplete background color of the panel.

Please suggest for this.

thank!

+3
source share
2 answers

This works for me in version 2.0.0:

Ext.application({
    launch : function() {
        Ext.Viewport.add([{
            xtype: 'panel',
            style: 'background-color:#F00'
        }]);
    }
});
+4
source

This link: http://www.sencha.com/forum/archive/index.php/t-108823.html

Assumes background color is its own essence. I never used Sencha, but the group I worked with believed that I was using it once ... for example.

panel: {
        centered: true,
        width: 200,
        height: 150,
        background-color: red,
        fullscreen: false,
        hidden: true,
        zIndex: 10,

   }

, , , .

0

All Articles