-
10 Nov 2010 8:46 AM #1
Ext.ux.touch.ListPullRefresh
Ext.ux.touch.ListPullRefresh
*UPDATE* I have implemented the event based system suggested here, doing away with static methods, and I'm very happy with the results - please take a look at the updated code on Github and read my Blog post about the List Pull Refresh (Pull to Refresh) plugin.
This is a WIP, but I thought I would share it anyway. It's the typical 'Pull to Refresh' feature that you see in twitter and facebook apps for iPhone. Works with Lists right now, but should also work with a straight DataView.

Like I said, WIP, so there is still work to be done - please feel free to fork it on Github and send me a pull request with your changes.
https://github.com/VinylFox/Ext.ux.t...istPullRefresh
Usage:
EnjoyCode:{ xtype: 'list', ..., plugins: [new Ext.ux.touch.ListPullRefresh({ listeners: { 'released': function(plugin,list){ // call the plugins processComplete method to hide the 'loading' indicator your_store.on('load',plugin.processComplete,plugin,{single:true}); // do whatever needs to happen for reload your_store.load(); } } })], ... }-Shea
My Blog:VinylFox | Twitter:@VinylFox | JavaScript Magazine:JSMag | Curator of the Baltimore/DC JavaScript Meetup | Author: Learning ExtJS 3.x Book
ExtJS Extensions & Plugins: GMapPanel UX | HtmlEditor Buttons Plugin | Selection Enabler Plugin | Grid DataDrop Plugin | Additional Ext.Fx
Sencha Touch Plugins: Swipe Tabs | List Pull Refresh | Accelerometer Tabs
-
10 Nov 2010 10:41 AM #2
-
10 Nov 2010 5:21 PM #3
Didn't test it yet, but I suppose it's nice.
Owner of 360releases Ltd. - Sencha Touch & Ext JS consulting
twitter.com/steffenhiller
extjswithrails.com, senchatouchbits.com
-
25 Nov 2010 1:53 PM #4
Made some small adjustments:
----------------------------------------------
Support for SenchaTouch 1.0.
Using default SenchaTouch list loading.
Hide when not being used.
Follow Scroller.
----------------------------------------------
https://github.com/herkulano/Ext.ux....istPullRefresh
-
26 Nov 2010 8:00 AM #5Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 33
Pretty suick dude!
Last edited by jay@moduscreate.com; 26 Nov 2010 at 8:01 AM. Reason: changed "suck" to "sick"

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
26 Nov 2010 10:00 AM #6
-Shea
My Blog:VinylFox | Twitter:@VinylFox | JavaScript Magazine:JSMag | Curator of the Baltimore/DC JavaScript Meetup | Author: Learning ExtJS 3.x Book
ExtJS Extensions & Plugins: GMapPanel UX | HtmlEditor Buttons Plugin | Selection Enabler Plugin | Grid DataDrop Plugin | Additional Ext.Fx
Sencha Touch Plugins: Swipe Tabs | List Pull Refresh | Accelerometer Tabs
-
26 Nov 2010 11:42 AM #7
Thanks, i merged your changes and it looks great.

-
28 Nov 2010 1:31 AM #8
did not download it yet but I think its a great addition. is it going to stay an extension? or does sencha have plans for incorporating such a functionality with the formal distribution?
also, is this forum the place to look for sencha touch extensions? or is there another place?
thanks.
-
29 Nov 2010 7:01 AM #9
I doubt this will be added as part of the library. It's easy enough to implement as a plugin, and it's not native iOS behavior.
It appears that this will be the forum to look for plugins and extensions. If that changes, then the relevant posts will be moved.-Shea
My Blog:VinylFox | Twitter:@VinylFox | JavaScript Magazine:JSMag | Curator of the Baltimore/DC JavaScript Meetup | Author: Learning ExtJS 3.x Book
ExtJS Extensions & Plugins: GMapPanel UX | HtmlEditor Buttons Plugin | Selection Enabler Plugin | Grid DataDrop Plugin | Additional Ext.Fx
Sencha Touch Plugins: Swipe Tabs | List Pull Refresh | Accelerometer Tabs
-
29 Nov 2010 7:03 AM #10Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 33
Yes. the Sencha team has to be very wary of the library's size.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
Similar Threads
-
Ext.ux.touch.SwipeTabs
By VinylFox in forum Sencha Touch 1.x: Examples and ShowcasesReplies: 24Last Post: 28 Jun 2012, 1:23 AM -
Ext Designer for Touch
By Frank R in forum Sencha Touch 1.x: DiscussionReplies: 6Last Post: 11 Feb 2012, 12:53 PM -
Ext JS and Sencha Touch!
By mcamer in forum Sencha Touch 1.x: DiscussionReplies: 8Last Post: 1 Dec 2010, 10:19 AM -
Sencha Touch on iPhone v1 / iPod touch v1 ?
By palnap in forum Sencha Touch 1.x: DiscussionReplies: 4Last Post: 28 Oct 2010, 5:30 PM -
Ext Touch Core anyone?
By mystix in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 11 Jun 2010, 4:52 AM




Reply With Quote