Browse Source

+ onStart/onEnd

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

14
README.md

@ -30,16 +30,24 @@ new Sortable(elem, {
handle: ".my-handle", // Restricts sort start click/touch to the specified element
draggable: ".item", // Specifies which items inside the element should be sortable
ghostClass: "sortable-ghost",
onStart: function (/**Event*/evt) { // dragging
var itemEl = evt.item;
},
onEnd: function (/**Event*/evt) { // dragging
var itemEl = evt.item;
},
onAdd: function (evt){
onAdd: function (/**Event*/evt){
var itemEl = evt.item;
},
onUpdate: function (evt){
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