问题
I've been writing my own pagination logic that would be similar to the Ember.SortableMixin but with support for paging. Does anything like this exist yet in the pre 1.0 build?
If this doesn't exist is a pull request welcome around this specific behavior? It's my guess that 90% of apps out there need simple pagination/sorting and having a mixin built in would cut out almost 60+ lines of code.
Thank you in advance
Update
I replied to another "ember/ pagination" question and my full blown (working example) can be found at the below
Ember pagination full example
回答1:
Here's a simple one that I've used: https://gist.github.com/1559628
It's by one of the top ember contributors.
回答2:
i've just come across emberjs-pageable. it looks quite nice at first glance, but i'm not sure if it's still maintained.
回答3:
I've been using this one https://github.com/mathieul/page_wrapper
Tailored for use with Rails but could easily be adopted.
Really happy with it so far.
回答4:
Here's a great blog post that talks about Pagination (though it's not a copy/pasteable mixin)
http://resistor.io/blog/2013/10/01/simple-pagination-in-ember-arraycontrollers/
来源:https://stackoverflow.com/questions/12482977/does-a-pagination-mixin-exist-for-ember-js-yet