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

Allow to setCurrentPageOffsetStart() and setCurrentPageOffsetEnd() #17

Open
I-Valchev opened this issue Aug 20, 2020 · 1 comment
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@I-Valchev
Copy link

I have paginated iterable, say split in 5 items per page.

I want to be able to setCurrentPageOffsetStart() to, 2, for example. That way when I iterate over the items, I get item 3 to 5.

Similarly, I want to setCurrentPageOffsetEnd() to 4, for example, to iterate between the currentPageOffsetStart and currentPageOffsetEnd.

@mbabker mbabker added the enhancement New feature or request label Aug 20, 2020
@mbabker mbabker added the help wanted Extra attention is needed label Oct 10, 2023
@stof
Copy link
Contributor

stof commented Mar 12, 2024

I fail to see the use case for that. Using arbitrary offsets does not match the concept of pages anymore.

If you want to retrieve arbitrary slices of data, this is possible by using the AdapterInterface directly instead of wrapping it in a Pagerfanta object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants