1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    73
    Vote Rating
    -1
    PhilChill is an unknown quantity at this point

      0  

    Default Answered: refresh list like facebook

    Answered: refresh list like facebook


    Hey,

    I think the command will be already there but i don't can find them. I'm searching for a command or event to refresh my list like the facebook app is making it. I found this post from the sencha touch 1 forum but i think in sencha touch 2 i don't need to use the plugin. http://www.sencha.com/forum/showthre...istPullRefresh

    My list items looks so:
    Code:
    items: [	{
    	    xtype: 'topBar',
    	    listeners : {
    		    painted: function(){
    			this.setTitle('Agent View');
    			
    			var hiddenButton = Ext.getCmp('back');
    			hiddenButton.hide();
    		    }
    		}
    	},
    	{
    	    xtype: 'searchfield', //The search 
    	    placeHolder: 'Search...'
    	}
    	]
    under the search field is the list shown.

  2. Hey,
    sorry what do you mean by telling that you are looking for a command to update the list like Facebook does but you don't need the plugin?
    If you are looking for the same plugin showed in the link you posted you can find the docs at the following url.

    http://docs.sencha.com/touch/2-0/#!/...in.PullRefresh

    Otherwise could you explain better what you want to achieve?

  3. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,395
    Vote Rating
    23
    Answers
    148
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Hey,
    sorry what do you mean by telling that you are looking for a command to update the list like Facebook does but you don't need the plugin?
    If you are looking for the same plugin showed in the link you posted you can find the docs at the following url.

    http://docs.sencha.com/touch/2-0/#!/...in.PullRefresh

    Otherwise could you explain better what you want to achieve?
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


  4. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    73
    Vote Rating
    -1
    PhilChill is an unknown quantity at this point

      0  

    Default


    Yes that is what i wanted thank you Just one more question to the plugin is there an event that will be fired every time when the user drag the the list down?

  5. #4
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,395
    Vote Rating
    23
    Answers
    148
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Nope, but you can set a listener to the listener scroller in this way:

    Code:
    list.getScrollable().getScroller().on({
        scroll: 'onListScroll',
        scope: this
    });
    Where:
    • list is your list component;
    • onScrollList is the callback function associated to the scroll event.
    • scope is where the "onScrollList" function is defined.
    Hope this helps.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    Owner at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    https://github.com/AndreaCammarata/TUX


  6. #5
    Sencha User
    Join Date
    Mar 2012
    Posts
    73
    Vote Rating
    -1
    PhilChill is an unknown quantity at this point

      0  

    Default


    Thank you I will give it a try

Thread Participants: 1

Tags for this Thread