swampdragon
swampdragon copied to clipboard
Get additional information for pagination
I just tested the pagination as documented here : http://swampdragon.net/documentation/pagination/ - what I couldn't figure out was how to set the total-items
pagination attribute.
How can we access this and assign it in controllers.js
?
I am also looking to figure out how to paginate the data. I can get my results limited but don't know where to go from there. Have you figured anything out on this front?
After looking through the code it doesn't look like this is stored; it is created when a Paginanator
is instantiated, but the Paginator
is then only used to return a Page
.
So I think for now a quick workaround is to add a pagecount
template variable manually to each view function that needs pagination.