jolicode / Alloy-PullToRefresh

Pull to refresh widget for Titanium Alloy applications.
MIT License
55 stars 10 forks source link

Listen for the Update in the Mainfile? #2

Closed nubu closed 10 years ago

nubu commented 10 years ago

Hey,

thanks for your great working Widget :+1:

One question: At the moment (and in the example) the "callservertoupdate" part is in the listview.js itself. Is it possible to listen for this things in the main file, to call server, Ui updates and stuff like that?

Best, Nico

EDIT: Just exporting the other functions "stop" and "setCallback" - so they are available. :)

clairecoloma commented 10 years ago

Hi ! Sorry, it's not possible with this widget, because you have to indicate the controller of the element you want to refresh. Indeed as you can see in the file widget.js, it's the widget which creates your listView/tableView, so you have to create other files for it. PS: I'm so sorry for the late response.