You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.As far as I can see, you can only render custom pagination and the
setPage()
function with therenderPagination()
prop ofReactiveList
. And you can only render the stats inside therender
prop usingresultStats
. 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
andresultStats
inside the same render function.Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: