1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    4
    Vote Rating
    0
    mknarayan is on a distinguished road

      0  

    Default Answered: Setting the backgroung image of form panel

    Answered: Setting the backgroung image of form panel


    Hi this is my navigation view which has two child views form panel and tab panel

    Ext.define('MobileApp.view.MainView',{
    extend:'Ext.NavigationView',
    xtype:'mainpanel',
    requires:['MobileApp.view.LoginPanel2',
    'MobileApp.view.TabPanel'],
    config:{
    fullscreen:true,


    items:[{
    xtype:'loginpanel'


    },{
    xtype:'viewpanel'

    }]

    }
    });


    This is my formpanel
    Ext.define('MobileApp.view.LoginPanel2',{
    extend:'Ext.form.Panel',
    xtype:'loginpanel',

    config:{
    fullscreen:true,
    bodyStyle:'background-color:red',
    items:[{

    xtype:'label',
    html:'helloworld'


    }]
    }
    });

    I am not able set either background color or image of the form panel, but when i change to panel instead of form panel i am able make the change please help

  2. Try this:

    style: 'background-color: red',

    instead of

    bodyStyle...

  3. #2
    Sencha User Olivierco's Avatar
    Join Date
    Nov 2011
    Location
    Paris - France
    Posts
    65
    Vote Rating
    -1
    Answers
    3
    Olivierco is an unknown quantity at this point

      0  

    Default Try style instead of bodystyle

    Try style instead of bodystyle


    Try this:

    style: 'background-color: red',

    instead of

    bodyStyle...

  4. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    4
    Vote Rating
    0
    mknarayan is on a distinguished road

      0  

    Default


    Hi

    got it working!!!!

    thank you

Thread Participants: 1