简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM