提交 b143b4bd 编写于 作者: L Lebedev Konstantin

+ onStart/onEnd

上级 95e94b68
......@@ -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;
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册