-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we load it in reverse? #132
Comments
yessir
|
but this is better done on the server of course |
Yes it will be on server
|
@v3ss0n did you do that? How can I configure Infinity to scroll up instead down? |
I'm trying to make infinity model unshift new objects instead push, is that possible? |
update: to do the unshift I did: InfinityRoute.reopen({
_doUpdate(newObjects) {
let infinityModel = this._infinityModel();
return infinityModel.unshiftObjects(newObjects.get('content'));
}
}); But I did not figured out how to invert the scroll event to UP instead DOWN yet. |
@williamweckl the "trigger" for loading more is in the _bottomOfScrollableOffset() {
return this.get('_scrollable').height() + this.get("_scrollable").scrollTop();
},
_triggerOffset() {
return this._selfOffset() - this.get('triggerOffset');
},
_shouldLoadMore() {
if (this.get('developmentMode') || this.isDestroying || this.isDestroyed) {
return false;
}
return this._bottomOfScrollableOffset() > this._triggerOffset();
}, If you want to trigger load in a direction that's not down, you'd have to reimplement this code (especially |
Opened :) |
For chat rooms , we need to load data in reverse order , is there feature for it?
The text was updated successfully, but these errors were encountered: