Closed yi closed 9 years ago
Hi, I just realized this plugin is pefect for endless scrolling.
So I close this ticket for now.
Hi, in my mind the only way to know this is to make another query. I think it's a good feature but I don't think its a good idea to make it without letting the implementor decide to query their db one more time. @yi, what do you think?
Hi Jonas,
Just a quick thought:
From my use of your pagination plugin, I found it could be ideally server two different scenarioes:
a: user brows the data set page by page
b: user scrolls the data set within a fixed-sized window (I personally prefer this experience on large volumn of data, because its better for searching, performance, caching and implementation)
So, how about provide one method for each scenario?
Let's say:
Model.paginate() works for pagination purpose,
and
Model.scroll() works for scrolling purpose
When I use model.execPagination(), the result will always contain before and after. So I can I tell if the user has reached the beginner (or the end) of the whole collection?
Following is my code, currently it loops from the begining to the end.