DataView Paginated Scroll
Trevor DeVore
lists at mangomultimedia.com
Fri Sep 20 14:14:37 EDT 2019
Howdy folks,
I've uploaded a new behavior built on top of the DataView which facilities
progressively loading paginated API data as you scroll. I needed this for
an application and I've tried to abstract it and document it so that it
might be useful to others.
It is called DataView Paginated Scroll. For those who use APIs that return
"pages" of results (e.g. records 1-20 of 760 records) this extension of the
DataView control greatly simplifies knowing when to ask the server for more
records.
For example, if the user scrolls to the end of the DataView you don't need
all of the results in between the beginning and end. You just need the last
page. The DataView is intelligent in that regard and only requests the lats
page of results to display.
I've updated the DataView Demo project on GitHub with a Pokemon tab that
uses an publicly available API that lists Pokemon. You can find the demo
repo here:
https://github.com/trevordevore/dataview_demo/tree/master
The actual DataView Paginated Scroll helper repo is here:
https://github.com/trevordevore/levurehelper-dataview_paginated_scroll
--
Trevor DeVore
ScreenSteps
www.screensteps.com
More information about the use-livecode
mailing list