Add some additional features to RB.CollectionView.
Review Request #7837 — Created Dec. 28, 2015 and submitted — Latest diff uploaded
This change adds a few new things to
RB.CollectionView
:
- The view will properly respond when the collection is reset.
- The view will reorder DOM elements for sorted collections.
- TheitemViewType
can be passed in as an option at construction time, rather
than requiringCollectionView
to be extended.
- A newitemViewOptions
member allows options to be plumbed through to the
individual item views.
Used these features in another change (in Power Pack).
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.
orig
1
2
3
reviewboard/static/rb/js/views/collectionView.js |
---|