I'm wondering if I should be using a Backbone.Collection called ExerciseList
for my exercises page, which displays Exercise
s 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 Exercise
s 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 01 Answer
Reset to default 6That 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.