Browse Source

+ onStart/onEnd

pull/55/head
Lebedev Konstantin 11 years ago
parent
commit
b143b4bdac
  1. 14
      README.md

14
README.md

@ -31,15 +31,23 @@ new Sortable(elem, {
draggable: ".item", // Specifies which items inside the element should be sortable
ghostClass: "sortable-ghost",
onAdd: function (evt){
onStart: function (/**Event*/evt) { // dragging
var itemEl = evt.item;
},
onUpdate: function (evt){
onEnd: function (/**Event*/evt) { // dragging
var itemEl = evt.item;
},
onAdd: function (/**Event*/evt){
var itemEl = evt.item;
},
onUpdate: function (/**Event*/evt){
var itemEl = evt.item; // the current dragged HTMLElement
},
onRemove: function (evt){
onRemove: function (/**Event*/evt){
var itemEl = evt.item;
}
});

Loading…
Cancel
Save