-
Notifications
You must be signed in to change notification settings - Fork 64
Can you add a working example like the one we have for 'backbone.paginator'? #1
Comments
Yep. I will add a demo to Backgrid.js today, but at the mean time you can take a look at the README and the QUnit tests. If you are working with Rails, you can just extend PageableCollection with a url, and everything else should just work like a plain Backbone.Collection with some extra methods. |
Read from the source that the state are checked before making the request. I need these state data to render the pagination UI (may probably try the Backgrid later but i want to use it separately by now). Please correct me if i'm wrong. |
Generally you should bootstrap your server mode |
Thanks for your promply response. For some reasons, bootstrapping a collection is not feasible in my case. Here's is my config: Do I have to customize the response from the server-side |
|
So you mean either I alter the server response for the fetch request using format like [{ pagination state }, [{}, {} ...]] One more thing, I notice Pageable's Collection.create() no longer trigger "add/request/sync" events when i call . Is it on purpose or any workarounds for that? |
You need to provide a response format like I didn't do anything with the |
That's strange. I read the source that you didnt touch this part but when i switch back to plain old backbone collection, I can see those events(add/request/sync) propagates, which is missing if using Pageable. Please let me know should you need me to provide more information. |
File a separate bug report if you believe backbone-pageable is at fault. Please provide a jsfiddle or jsbin link when you do so. |
Sorry, it's my fault. It works fine. Thanks for your help and work. |
Thanks for the demos. Just wanted to let you know that the Infinite demo seems not to be working now. |
@alanrubin It seems to work fine here. Github's API has a 60 req/hr rate limit on public access. Did you run out of quota? |
The API request returns the correct results. Have you tried in FF ? I have tried with Safari and it works, so probably a FF issue. |
WTF. Looks like a Firefox bug 608735. Thanks for reporting. |
Can you add an example\sample application (like Netflix or localstorage one)?
It would be easier to understand and also play with some of the features you are claiming this library will solve better than 'backbone.paginator'?
The text was updated successfully, but these errors were encountered: