Ben's Sandbox
  • Projects
  • Tags

Custom Sorting with a Collection bound to a jQuery UI Sortable Widget


View Blog   View Source  
This demo replicates the basic example on the jQuery UI site for the Sortable widget. However, the contents of the list are backed by a Backbone collection and the MVC framework is used to manage and respond to the user interaction. As you move items around, the data is stringified and echoed at the bottom of the page to show that the collection has changed to match the current state of the list.


Current Model Ordering in Collection:




  

© Ben Olson 2012 with help from Jekyll Bootstrap and Twitter Bootstrap