Manually trigger receive event for jquery-ui sortable -
here's working demo of code far.
when drag open space, empty group created. may going wrong way, item dragged new group populated list. there way call receive event jquery-ui sortables widget achieve this.
alternately, should prepopulate group being added item un drop method of droppable item
drop: function (event, ui){ $(element).append($(ui.helper).clone()); }
or that?
you can manually trigger sortable event using jquery's .trigger()
event so:
$('#sortable-name').trigger('sortreceive');
i think code looks bit strange, perhaps because have never seen use jquery ui in widget format.
josh
Comments
Post a Comment