PDA

View Full Version : Adding a div for layout



revolt
3 Aug 2010, 7:23 PM
Hey everyone.

I'm new to Sencha Touch, just installed it today and been reading through the docs.

I'm wanting to place a div above a carousel that's 50px high and 100% width with a background of black. It would be like a header with a logo in the middle. I know how to write the CSS but would I place the div inside the HTML page or would I place it in the JS page that calls the carousel?

Thanks for the help.

evant
3 Aug 2010, 8:58 PM
new Ext.Panel({
layout: {
type: 'vbox',
align: 'stretch'
},
items: [{
height: 50,
contentEl: 'yourEl'
},{
xtype: 'carousel',
// .....
}]
});

revolt
4 Aug 2010, 4:56 AM
Thanks Evan.

Would you happen to know the link in the documentation that explains more about the parameters?

revolt
4 Aug 2010, 5:09 AM
Never mind I found it in the Sencha Touch API Documentation.

Thanks again Evan.