PDA

View Full Version : PullRefresh for Panels



jeanluca
25 Apr 2012, 4:35 AM
Hi

I've created a plugin which is identical to PullRefresh but it acts on Panels

I've uploaded it to github here (https://github.com/scaljeri/pull-refresh-panel)

The demo is a complete ST2 project so it should work out of the box

The plugin can be found in the 'plugin' directory.

First of all I would like some feedback so I can improve this plugin!

Second, I had to copy my plugin into sdk/src/plugin before it worked. This is probably because the first couple of lines in app.js are


Ext.Loader.setPath({
'Ext': 'sdk/src'
});
Is it possible to define my ./plugin directory too ?

Cheers
Luca




(https://github.com/scaljeri/pull-refresh-panel)

mitchellsimoens
27 Apr 2012, 5:08 AM
I see you changed the namespace of the plugin so you don't have to put it in the sdk directory anymore, that is good.

Why not extend Ext.plugin.PullRefresh and just change what you need to change instead of typing things over?

jeanluca
27 Apr 2012, 12:24 PM
good point. thanks. I've changed the plugin!

cheers

trinitrotoluen
28 Apr 2012, 4:26 PM
I will need this kind of plugin, thanks ~o)

cntop@msn.com
4 Jan 2013, 4:58 PM
u're a good man, this plugin is useful for me.

gkatz
5 Jan 2013, 3:03 AM
super useful instead of my refresh Ext.Button I have in my toolbar.
BTW, would this work with Ext.Container also?
thanks

jeanluca
5 Jan 2013, 4:22 AM
thnx for the compliments! It seems that it works with Ext.Container too :)

cheers

mcamara
6 Nov 2013, 2:55 PM
Its seems to not work on sencha 2.3.

Something related to a listener :(

jeanluca
6 Nov 2013, 11:48 PM
Its seems to not work on sencha 2.3.

Something related to a listener :(

Could you post the errors you get ?

Tioecomp
3 Apr 2014, 10:20 AM
Did anyone used this on the new version of sencha 2.3?

jeanluca
3 Apr 2014, 10:33 AM
it will not work with 2.3. A lot of things have changed. If you want you can make a pull request here https://github.com/scaljeri/pull-refresh-panel

With that you will make some people very happy!!