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

Access renderPagination inside render #2121

Closed
jebax opened this issue Nov 7, 2022 · 0 comments
Closed

Access renderPagination inside render #2121

jebax opened this issue Nov 7, 2022 · 0 comments
Assignees

Comments

@jebax
Copy link

jebax commented Nov 7, 2022

Affected Projects

React

Is your feature request related to a problem? Please describe.

I'm trying to render custom pagination below my ReactiveList result items. I'd also like to display some stats next to that pagination, e.g.

Displaying 11-20 of 10000 results <button onClick="setPage(1);">Previous</button><button onClick="setPage(3)">Next</button>

As far as I can see, you can only render custom pagination and the setPage() function with the renderPagination() prop of ReactiveList. And you can only render the stats inside the render prop using resultStats. This means that it's impossible to render the 2 things next to each other (inside the same container element) because they can only be accessed inside 2 separate render functions.

Am I missing something here? The docs don't show any examples of custom pagination and/or result stats.

Describe the solution you'd like

I'd like to be able to access renderPagination and resultStats inside the same render function.

Describe alternatives you've considered

Additional context

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

No branches or pull requests

3 participants