-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
I'd like to be able to set the view via a .add() method:
var myListView = Ti.UI.createListView({
height: Ti.UI.FILL,
width: Ti.UI.FILL
});
var swipeRefreshModule = require('com.rkam.swiperefreshlayout');
var swipeRefresh = swipeRefreshModule.createSwipeRefresh({
height: Ti.UI.FILL,
width: Ti.UI.FILL
});
swipeRefresh.add(myListview);
$.content.add(swipeRefresh);
This will allow me to use the module in Alloy XML:
<Alloy>
<Window>
<SwipeRefresh module="com.rkam.swiperefreshlayout">
<ListView>
<!-- listview tags -->
</ListView>
</SwipeRefresh>
</Window>
</Alloy>
Metadata
Metadata
Assignees
Labels
No labels