Results 1 to 4 of 4

Thread: List Paging Plugin -- Pull to refresh -- from the bottom?

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    13
    Answers
    1
    Vote Rating
    1
      0  

    Default List Paging Plugin -- Pull to refresh -- from the bottom?

    I was wondering if anybody knew how to make the pulltorefresh plugin load on the bottom of your list instead of the top, so that you get the same pull reload animation just flipped on the bottom instead of the top. Any ideas?

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    What you need to do is override the onListUpdate method and insert it after the last node. The line you need to change is this:

    Code:
    this.list.getTargetEl().insertFirst(this.el);
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    13
    Answers
    1
    Vote Rating
    1
      1  

    Default

    Something told me. "Add the code". Then I was like.."No, don't add the code". Let me now add the code (although, it's really cool that you can append them to the start of the list, I'm actually positive I'm going to use this late today, but I was thinking of something a little different). Here's the code.

    Code:
    MyLittlePony = new Ext.List({
    plugins: [{
                    ptype: 'pullrefresh'
                    autoPaging: false
                }],
    store: specialPonyStore,
    itemTpl: '<SuperFancy></SuperFancy>'
    });
    Obviously this won't exactly fly in the wild, but if you add this standard sencha plugin 'pullrefresh' to any list and you get an awesome refresh animation (like twitter pull to reload) at the top of your list (hidden at first, but if you drag down from the top, you will see our little "page refresher") It adds the elems to the store, calls the update on the view, **boom** your list is now updated. The only problem is I want this same fancy list pull UI but on the bottom of my list and not the top, and not refresh with new stores on the top, but older stores on the bottom. Any thoughts?

  4. #4
    Sencha User
    Join Date
    May 2012
    Posts
    57
    Vote Rating
    0
      0  

    Default

    Any solutions to this via CSS Mitchell?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •