-
27 Feb 2012 7:45 AM #1
Carousel preview of next and previous cards / Padded Carousel
Carousel preview of next and previous cards / Padded Carousel
Hi,
I need help or hints on how to make carousel cards previewed / padded to view the next and previous cards.
I have attached a mock-up on what I want to do.
I have achieved this on my previous ST1 project by modifying the functions in the Carousel and creating my own Carousel Card layout. But on ST2, the Carousel source code is very different and it seems that I need to track and understand a lot of component hierarchies related to carousel in order to do this.
Thanks in advance for the help.
carousel.jpgLast edited by elwhiz; 27 Feb 2012 at 7:51 AM. Reason: attached image
-
28 Feb 2012 11:00 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
The non active items are going to be hidden and you will need to make sure they are positioned appropriately.
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.
-
4 Oct 2012 12:08 PM #3
are there any approaches to the desired result? i am looking for the same
-
9 Jan 2013 1:30 PM #4
Hello, elwhiz!
Did you find out how to achieve this?
Thank you!
-
13 Jan 2013 8:52 AM #5
A typical complaint we get from customers using these carousels is that they didn't know you could swipe or what those dots at the bottom meant. Indicators on the sides as mentioned by the OP are on my list of to-dos. Trello.com does this with their iOS app. Very effective.
John
-
13 Mar 2013 7:38 PM #6
show previous/ next preview
show previous/ next preview
I found that setting the carousel to 90% of the parent component and center the carousel, and then set the overflow to visible has worked well for me.
Code:{ xtype:'container', cls:'carousel_container', layout:{ type:'vbox', align:'center', pack:'center' }, items:[ { xtype:'carousel', name:'OrgChart', hidden:true, height:150, width:'90%', cls:'accordion_carousel', items:[ { html:'screen 1', }, { html:'screen 2' }, { html:'screen 3' } ] }, ] },HTML Code:.accordion_carousel{ background-color:#e8e8e8; overflow:visible; } .carousel_container{ background-color:#e8e8e8; }


Reply With Quote