Easily render backbone.js collections. In addition to managing model views, this class supports automatic selection of models in response to clicks, reordering models via drag and drop, and more.
Changing selection with arrow keys in the table view changing wasn't working because of a problem with:
get/setSelectedModel/s({ by: "offset" })
It was using:
this.$el.find( "> [data-item-id]:visible" )
to get the item elements, which worked fine for the ul views, but not for table views. I added a conditional that checks if the view is rendered as a table and if so, uses this selector instead:
Changing selection with arrow keys in the table view changing wasn't working because of a problem with:
It was using:
to get the item elements, which worked fine for the
ul
views, but not fortable
views. I added a conditional that checks if the view is rendered as atable
and if so, uses this selector instead: