knockout-sortable
knockout-sortable copied to clipboard
Example for Droppable
Updated to add example for droppable, also added couple lines in draggable to support updating the data set as I noticed the draggable was not updating the data when the observable changed.
This new binding is great - thanks!
I've worked out that something like the following can be done when needing access to the target collection as well as the dropped item (where $data
is the target collection):
droppable: function(droppedItem) { $component.someMethod($data, droppedItem); }
@rposener - thanks! I will review and merge this when I get a chance (may be a few days).
This now also has fix for bug #186 .