-
11 Jun 2012 5:39 PM #1
Answered: Carousel Title Bar
Answered: Carousel Title Bar
Is there a way to have a carousel titlebar locked to the main fullscreen carousel I have below it? I'm trying to make a UI that looks similar to the Google Play store carousel and titlebar.
Any help is much appreciated. Thanks.
-
Best Answer Posted by mitchellsimoens
For that then you need to have a titlebar for each item.
-
11 Jun 2012 10:09 PM #2
items: [
{
xtype:'toolbar',
title:'google play',
items:[
{
xtype:'carousel',
items:[{ur screen here}]
}
]
}
]
-
13 Jun 2012 8:40 AM #3Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,666
- Vote Rating
- 435
- Answers
- 3109
If you have a docked item as an item of the carousel it will be docked, so you don't need to nest it in another container
Code:{ xtype : 'carousel', items : [ { xtype : 'titlebar', docked : 'top', title : 'Title' }, //more items here ] }Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
13 Jun 2012 7:10 PM #4
Thanks for the help everyone. I tried the method mentioned, but it keeps the title in the titlebar in place. I would like it to move left and right like the main carousel item below it. Something like a carousel titlebar locked to another main carousel below it. I would also like to be able to swipe the titlebar left and right and be able to move the main data in the carousel below it left and right.
Is this possible?
-
14 Jun 2012 4:36 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,666
- Vote Rating
- 435
- Answers
- 3109
For that then you need to have a titlebar for each item.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
15 Jun 2012 7:21 PM #6


Reply With Quote