-
18 Apr 2012 4:22 AM #1
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:
under the search field is the list shown.Code:items: [ { xtype: 'topBar', listeners : { painted: function(){ this.setTitle('Agent View'); var hiddenButton = Ext.getCmp('back'); hiddenButton.hide(); } } }, { xtype: 'searchfield', //The search placeHolder: 'Search...' } ]
-
Best Answer Posted by AndreaCammarata
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?
-
18 Apr 2012 5:23 AM #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?Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
-
19 Apr 2012 11:33 PM #3
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?
-
19 Apr 2012 11:40 PM #4
Nope, but you can set a listener to the listener scroller in this way:
Where:Code:list.getScrollable().getScroller().on({ scroll: 'onListScroll', scope: this });- list is your list component;
- onScrollList is the callback function associated to the scroll event.
- scope is where the "onScrollList" function is defined.
Sencha Inc
Andrea Cammarata, Solutions Engineer
CEO at SIMACS
@AndreaCammarata
www.andreacammarata.com
github: https://github.com/AndreaCammarata
-
19 Apr 2012 11:51 PM #5


Reply With Quote