Open shinglyu opened 9 years ago
Got it, thanks!
"meta": {"limit": 20, "next": "/api/v1/caseversion/?offset=20&limit=20&format=json", "offset": 0, "previous": null, "total_count": 129935}
should be enough for making a pagination.
This tool https://rawgit.com/shinglyu/moztrap-api-tester/master/index.html can help you explore the API
Thanks, I'll take this bug.
@hitripod : You might need to think about how checkboxes are handled between pages. Currently I save all the checked boxes's id in an array in this.state
. We might need something like a shopping cart, in case the user changes pages and the checked items are not visible.
Oh, by the way, I use React-Bootstrap in this project. You can use the bootstrap pagination if you like.
Thanks for your information. I hope you'll like it.
updateListUIState() is a quick solution by jQuery, but it might be more react-styled?
@hitripod: https://moztrap.mozilla.org/api/v1/caseversion/?format=json& There is a
meta.total_count