Topener / nl.fokkezb.pullToRefresh

Widget to implement a table pull-to-refresh header in Titanium Alloy
184 stars 60 forks source link

Use in Appcelerator Corporate Directory Example #69

Closed safadig closed 8 years ago

safadig commented 8 years ago

Thanks for a great Widget Having difficulty implementing in Directory Example ( No Model/Collection) .Not sure if it is the way I am calling the myRefresher function?

directory.xml

<Widget id="ptr" src="nl.fokkezb.pullToRefresh" onRelease="myRefresher">
        <ListView id="listView" defaultItemTemplate="userTemplate">
            <Templates>
                /////
            </Templates>
                </ListView>
        </Widget>
    </Window>

directory.js

function myRefresher(e) {
         success: init;
         error: e.hide;
    }

$.ptr.refresh();
FokkeZB commented 8 years ago

In myRefresher() you should do whatever you want to do to refresh the data in your listView and when you're done call e.hide().

ikalangita commented 7 years ago

Hi, i tried and works great, but i have an issue, when pull my data is calling twice and listview content is duplicated, could you help me please? thank you.

Topener commented 7 years ago

Please join www.tislack.org and ask help there. Or Stackoverflow and use the appcelerator tag.