-
18 Jul 2011 6:53 AM #1
Ext.ux.Cover - Coverflow extension for Sencha Touch
Ext.ux.Cover - Coverflow extension for Sencha Touch
If you are looking for a Sencha Touch Extension to emulate Coverflow take a look at this:
http://bit.ly/SenchaCover
It works only on iOS devices since Andriod has bugs with css animations (same for Chrome running on Linux)
So you can try it using Safari (Mac & Win) or Chrome (Mac)
Get the code at: https://github.com/elmasse/Ext.ux.Cover
Comments, feedback, issues are all welcome!
PS: Thinking about to rename package to Ext.ux.touch
-
19 Jul 2011 11:46 AM #2
Hi elmasse ,
That is a very nice implementation
.
1.Can you also add feature to tap on each item and selected item will comes to front.
2. Double clicking on item will flip to its info page.
Thanks for sharing
-
19 Jul 2011 12:24 PM #3
You can do it without modify the code. Ext.ux.Cover inherits from Ext.DataView, so you can add listeners to:
itemtap
itemdbltap
to achieve what are you looking for.
Hope this works for you. Anyway, I'm still working on this component so maybe I would add some features like this in a near future.Code:var cover = new Ext.ux.Cover({ itemCls: 'my-cover-item', //These are just for demo purposes. height: !Ext.is.Phone? 400: undefined, width: !Ext.is.Phone? 800: undefined, //end-demo itemTpl : [ '<div>', '<div class="dev">{firstName} {lastName}</div>', '<div class="company">{company}</div>', '<div class="image"><tpl if="image"><img src="{image}"></tpl></div>', '</div>' ], store: store, activeItem: 2, listeners:{ itemdoubletap: function(cover, idx){ //#2 console.log('itemdbltap', arguments); if(cover.activeItem === idx){ //do something here } }, itemtap: function(cover, idx){ //#1 console.log('itemtap', arguments); if(cover.activeItem !== idx){ cover.setActiveItem(idx); } }, scope: this } });
Best.
Max
-
27 Jul 2011 2:38 AM #4
-
2 Aug 2011 6:02 AM #5
Please, if you have a Playbook, or a supported BB, I would like to know if this component is working on those devices.
I've no Windows OS to install a RIM simulator
Thanks in advance!
Max
-
5 Aug 2011 1:27 PM #6
Just tried this on a Blackberry Playback and it seemed to work fine, just as smooth as on my iPad 1 (if not a little smoother).
I also tried it on a Samsung Galaxy tab 10.1 I managed to get it to load twice (out of 8 goes) without crashing the browser and it almost looks right, there just seems to be some z-index issues which hides the left edge of the selected cover and causes some odd popping on the animation.
Overall though it's really impressive!
Mrs Kensington
-
8 Aug 2011 2:11 AM #7
Looks good.

Wondering, is it possible to create similar effect, to navigate with multiple views?
any idea or sample would be helpful
Thanks in Advance
JP
-
9 Aug 2011 9:20 AM #8
Many many thanks for your help on this. I think that what you mentioned about the z-index issues is the same issue I'm experiencing on Chrome 12 for Mac OSX. Do not know the root cause yet, but if you take a look on the code, you will find some commented code about setting z-indexes. Anyway using that adds complexity and time to the main function and may cause some lags when using the component, so since it won't work (yet) on Android devices I prefer to remove them.
Again, thanks a lot for your help on testing this component!
Bests!
Max
-
9 Aug 2011 9:23 AM #9
-
20 Aug 2011 7:07 AM #10
Nice,
Nice,
Nice work. I love it. Well done!
Regards,
Markus



Reply With Quote