Where would a Pull to refresh widget be without it’s companion: Dynamic Scrolling. Where the former widget allows the user to load newer content, the dynamic scrolling mechanism allows you to scroll the table down and automatically load older content.
All this can be accomplished by just 4 lines of code:
1 2 3 4 |
var scrollCtrl = Alloy.createWidget('nl.fokkezb.dynamicScrolling', null, { table: $.myTable, loader: myLoaderCallback }); |
Check the code on GitHub for a complete Quick Start, additional parameters and exposed methods.
While the trigger mechanism itself should already be Android-proof, I’m looking for someone to test and optimize the widget for Android and Mobile Web.