Skip to content
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

Added the ability to use scope and functions as the skip and limit option #220

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Added the ability to use scope and functions as the skip and limit option #220

wants to merge 2 commits into from

Conversation

aliksend
Copy link

Now you can use scopes and functions as limit and skip options in filter. You can do pagination like this:

{
  limit: model.root.at('_session.items_in_page'), 
  skip: function(){ 
    model.root.get('_page.page_index') * parseInt(model.root.get('_session.items_in_page'))
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant