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

I was looking for a Javascript plugin that would provide the same basic functionality as jQuery UI Sortable . This is dragging and dropping items to reorder them. In my case, these elements are <li> tags.

Basically, I do not want to use jQuery UI because it is quite heavy and since I do not need to support IE, I use Zepto instead of jQuery. Therefore, I do not want to load the jQuery AND jQuery user interface just for that. That being said, I could easily live with a working jQuery plugin and adapt it to work with Zepto.

I have been looking for this for quite some time, but I can't find anything.

+6
source share
1 answer

While it does not have full functionality like jQuery UI Sortable, you can use this Zepto plugin - Drag and Drop.

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

+2
source

Source: https://habr.com/ru/post/903716/


All Articles