Topener / nl.fokkezb.pullToRefresh

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

Make the widget a child instead of a parent of the ListView/TableView #56

Closed Topener closed 8 years ago

Topener commented 8 years ago

Because the widget is a parent, it is impossible to disable it ad-hoc, especially platform specific.

Reason for this ticket, I want to disable it for Windows Phone, but not for Android and iOS

So this would be great:

<ListView>
    <Widget src="nl.fokkezb.pullToRefresh" platform="android,ios />
</ListView>

Instead of

<Widget src="nl.fokkezb.pullToRefresh" />
     <ListView>
     </ListView>
</Widget>

because in the 2nd/current option it is not possible to disable it platform specific

FokkeZB commented 8 years ago

It was a child before, but because of how the Android versions works it needs to be the parent. I think I can still fix #57 though.