EasyUI Forum

General Category => General Discussion => Topic started by: catpaw on March 30, 2016, 02:10:33 PM



Title: new item order from draggable
Post by: catpaw on March 30, 2016, 02:10:33 PM
hi again  ???

please refer to http://www.jeasyui.com/demo/main/index.php?plugin=Droppable&theme=gray&dir=ltr&pitem=
the option Change Items Order

how can I know/get the new order given

thanks


Title: Re: new item order from draggable
Post by: jarry on April 01, 2016, 01:31:22 AM
The 'onDrop' event gives you the opportunity to know what element will be dropped on.
Code:
onDrop:function(e,source){
    $(source).insertAfter(this);
    indicator.hide();
}