knockout-sortable icon indicating copy to clipboard operation
knockout-sortable copied to clipboard

Example for Droppable

Open rposener opened this issue 8 years ago • 3 comments

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.

rposener avatar Feb 20 '17 20:02 rposener

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); }

JD-Robbs avatar Feb 21 '17 09:02 JD-Robbs

@rposener - thanks! I will review and merge this when I get a chance (may be a few days).

rniemeyer avatar Feb 22 '17 15:02 rniemeyer

This now also has fix for bug #186 .

rposener avatar May 18 '17 21:05 rposener