Skip to content
This repository has been archived by the owner on Jul 4, 2021. It is now read-only.

Add pager's parameter to goTo, nextPage, previousPage methods #93

Closed
ihr opened this issue Oct 22, 2012 · 2 comments
Closed

Add pager's parameter to goTo, nextPage, previousPage methods #93

ihr opened this issue Oct 22, 2012 · 2 comments

Comments

@ihr
Copy link

ihr commented Oct 22, 2012

The pager function has a parameter which gives certain flexibility when it comes to configuring the backbone collection fetch method. Unfortunately there is not way to pass this parameter in goTo, nextPage, and previousPage.

@alexandernst
Copy link
Member

What are you trying exactly? goTo, nextPage and previousPage shouldn't receive any parameters (except goTo, which receives a number) as those methods do exactly what their name suggests.
If you're trying to apply some filter/whatever to the page why want to show, you're doing it really wrong.

@ihr
Copy link
Author

ihr commented Oct 22, 2012

To answer your question: I'm passing a header for the fetch function (I'm using the requestPager).

I have to admit that I've confused the goTo, nextPage (from the clientPager) and previousPage with goTo, requestNextPage, and requestPreviousPage (from the requestPager). Thanks and sorry for the time taken.

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

No branches or pull requests

2 participants