-
Notifications
You must be signed in to change notification settings - Fork 45
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
hasmore function, pagintation? #71
Comments
in the Controllers at func subscriptions and index, simply override this value sort.limit = this.limit(); to sort.limit = 3; but it's not reccomended the reccommended one is ovverride the increment variable in your controller add this:
or if you want to set the whole app with limit 3, simply edit the MeteorisController increment value |
Editing the increment value worked, but now a button should appear to load more results, but doesnt. thank you! |
which one from my answer did you used @marcojferreirac ? |
Editing the MeteorisController increment value. But now, even if my collection has 10 fields, i can only access 3. The others aren't loaded/can't be accessed. |
loadmore button also not showing? |
yes, the loadmore button doesn't appear. |
can You Please give your code at MeteorisController and YourController? |
My MeteorisController code is the same as the one in gitHub, only changed "increment: 3". My controller's code is the generated code, only changing the sort.limit in the "subscriptions" function, like below: ItemsController = MeteorisController.extend({
subscriptions: function() {
var sort = MeteorisGridView.getSorting();
sort.limit = 3;
this.subs.subscribe('ccdocs', {});
this.subs.subscribe('descriptions', {});
this.subscription = this.subs.subscribe('items', this.getCriteria(), sort);
},
}); |
Hi @marcojferreirac, I think you get me wrong. You shouldn't change the sort limit inside subscribe function, that will just subsrcibe 3 data from server and no more hardcoded. I mean you must change the MeteorisController itself, not the child. And you should change the increment variable value, not the limit. |
Hello!
I've been using the app for quite a while now. I noticed that it has a "hasMore" function, which is for pagintation right?
Although i can't get it to work... Where can i set the limit? How can i show only, for example, 3 results and then press a next button to show the next 3 results?
Thank you very much for your help!
The text was updated successfully, but these errors were encountered: