ember.js是否存在分页混合? [英] Does a pagination mixin exist for ember.js yet?

查看:109
本文介绍了ember.js是否存在分页混合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在写我自己的分页逻辑,与Ember.SortableMixin类似,但支持分页。有没有这样的事情存在于1.0版本之前?



如果这不存在,拉动请求欢迎围绕这一具体行为?这是我的猜测,90%的应用程序需要简单的分页/排序,并且内置了一个mixin可以删除几乎60多行代码。



提前谢谢



更新



我回覆了另一个ember / pagination问题和我的以下可以找到完整的(工作示例)



Ember pagination full example

解决方案

这是一个我使用过的简单的例子: https://gist.github.com/1559628



这是由其中一个顶级的捐助者。


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

解决方案

Here's a simple one that I've used: https://gist.github.com/1559628

It's by one of the top ember contributors.

这篇关于ember.js是否存在分页混合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆