Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sortable/draggable list items without jQuery UI (or jQuery at all?)

I've been looking for a Javascript plugin that would provide the same basic functionnality as jQuery UI Sortable. Wich is dragging and dropping items for reordering them. In my case those items are <li> tags.

Basically, I don't want to use jQuery UI because it's quite heavy and, as I don't need to support IE, I'm using Zepto instead of jQuery. So I don't want to load jQuery AND jQuery UI just for this. That being said, I could easily live with a working jQuery plugin and adapt it so it works with Zepto.

I've been looking for this for quite some time but can't seem to find anything.

like image 389
Leo Avatar asked Dec 13 '11 22:12

Leo


1 Answers

Whilst this doesn't have the full functionaility as jQuery UI Sortable you might be able to use this Zepto - Drag and Drop plugin.

https://github.com/netotaku/zepto-drag-and-drop.js

like image 138
3en Avatar answered Sep 18 '22 23:09

3en