|
Post by mcolombo78 on Jan 19, 2022 17:12:10 GMT
Hi,
I would like to know if it's possible to start from the bottom in the list and paginate upwards. Or start from the middle and paginate down and up.
That's all.
Thanks. Mariano
|
|
|
Post by echo17 on Jan 20, 2022 14:35:35 GMT
There are a number of ways to pagination backwards (from bottom to top). Attached is one way you can do this. This script is a modified version of the Controller.cs included in Demo #13 (Pagination) of the plugin. It reverses the elements, placing the loading cell at the top instead of the bottom. It triggers the load when the top of the scroller is reached. I've removed all original comments and put in new comments relevant to the reversed pagination. Controller.cs (3.26 KB) Starting in the middle would be a hybrid of the two approaches. You can take the example code of the original controller and this modified one to come up with something that works both ways.
|
|