Topener / nl.fokkezb.pullToRefresh

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

Widget disappear in scrollableview(Re-open) #47

Closed jmosqueda1987 closed 9 years ago

jmosqueda1987 commented 9 years ago

Hi,

With the classic code in my controller it works, but how I can do the callback to refresh the control?, here is my code

var ptr = Alloy.createWidget("nl.fokkezb.pullToRefresh", {
        id : "ptr",
        children : [tableview]
    }).getView();

    ptr.addEventListener("onRelease",function(e){
        alert("");
    });

Thanks Regards

FokkeZB commented 9 years ago

Alloy controllers extend BackBone.Events so the method to call is "on". The event is "release". Please see the Alloy guides, they explain all this.