Topener / nl.fokkezb.pullToRefresh

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

can you tell me how to create this widget in controller file #50

Closed minhuang0 closed 9 years ago

minhuang0 commented 9 years ago

I want to create nl.fokkezb.pullToRefresh in controller(js file),can you have a example to tell me how to create this widgets in js file. thanks !

FokkeZB commented 9 years ago

I don't get your question.

minhuang0 commented 9 years ago

I had try this widget in view(xml file) good .

FokkeZB commented 9 years ago

Ah, OK:

Alloy.createWidget('nl.fokkezb.pullToRefresh', {
  children: [$.yourList]
}).on('release', yourCallback);