1. #1
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    8
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      1  

    Default 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:
    Code:
       {
           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();
                }
             }
           })],
           ...
       }
    Enjoy

  2. #2
    Ext User xnakxx's Avatar
    Join Date
    Sep 2010
    Location
    Central Valley Ca
    Posts
    84
    Vote Rating
    0
    xnakxx is on a distinguished road

      0  

    Default


    Beautiful!!!

  3. #3
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    770
    Vote Rating
    28
    Steffen Hiller will become famous soon enough Steffen Hiller will become famous soon enough

      0  

    Default


    Didn't test it yet, but I suppose it's nice.

  4. #4
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    31
    Vote Rating
    0
    herkulano is on a distinguished road

      0  

    Default


    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

  5. #5
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Pretty suick dude!
    Last edited by jay@moduscreate.com; 26 Nov 2010 at 8:01 AM. Reason: changed "suck" to "sick"

  6. #6
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    8
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Quote Originally Posted by herkulano View Post
    Made some small adjustments...
    Thanks a ton. I pulled your changes into the main branch. Nice work.

    Also fixed up the styling a bit.

  7. #7
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    31
    Vote Rating
    0
    herkulano is on a distinguished road

      0  

    Default


    Thanks, i merged your changes and it looks great.

  8. #8
    Sencha User
    Join Date
    Nov 2010
    Posts
    403
    Vote Rating
    6
    gkatz is on a distinguished road

      0  

    Default


    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.

  9. #9
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    8
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    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.

  10. #10
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Yes. the Sencha team has to be very wary of the library's size.

Similar Threads

  1. Ext.ux.touch.SwipeTabs
    By VinylFox in forum Sencha Touch 1.x: Examples and Showcases
    Replies: 24
    Last Post: 28 Jun 2012, 1:23 AM
  2. Ext Designer for Touch
    By Frank R in forum Sencha Touch 1.x: Discussion
    Replies: 6
    Last Post: 11 Feb 2012, 12:53 PM
  3. Ext JS and Sencha Touch!
    By mcamer in forum Sencha Touch 1.x: Discussion
    Replies: 8
    Last Post: 1 Dec 2010, 10:19 AM
  4. Sencha Touch on iPhone v1 / iPod touch v1 ?
    By palnap in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 28 Oct 2010, 5:30 PM
  5. Ext Touch Core anyone?
    By mystix in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 11 Jun 2010, 4:52 AM

Thread Participants: 16