Forum /
Sencha Touch 2.x Forums /
Sencha Touch 2.x: Q&A /
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
Best Answer Posted by
Olivierco
Try this:
style: 'background-color: red',
instead of
bodyStyle...
Sencha User
Try style instead of bodystyle
Try style instead of bodystyle
Try this:
style: 'background-color: red',
instead of
bodyStyle...
Hi
got it working!!!!
thank you
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us