最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Using Backbone.Collection for a Paginated List? - Stack Overflow

programmeradmin10浏览0评论

I'm wondering if I should be using a Backbone.Collection called ExerciseList for my exercises page, which displays Exercises filtered by various properties. Each Exercise is rendered with an ExerciseRowView. So, would an ExerciseList and ExerciseListView be feasible/useful in this sort of situation?

Thanks!

I'm wondering if I should be using a Backbone.Collection called ExerciseList for my exercises page, which displays Exercises filtered by various properties. Each Exercise is rendered with an ExerciseRowView. So, would an ExerciseList and ExerciseListView be feasible/useful in this sort of situation?

Thanks!

Share Improve this question asked Jun 26, 2012 at 22:54 GarrettGarrett 11.7k20 gold badges86 silver badges129 bronze badges 0
Add a ment  | 

1 Answer 1

Reset to default 6

That would work just fine, you're definitely headed in the right direction. You'll have to create a pagination method on the collection.

Here's a great pagination ponent: https://github./addyosmani/backbone.paginator

Have a look at Addy Osmani's (the plugin author) article on Backbone pagination here: http://addyosmani./blog/backbone-paginator-new-pagination-ponents-for-backbone-js/

Should get you the rest of the way there.

发布评论

评论列表(0)

  1. 暂无评论