P
P
Pavlo Ponomarenko2011-04-24 03:56:10
JavaScript
Pavlo Ponomarenko, 2011-04-24 03:56:10

Alternative to jQuery.sortable?

I really dislike jQuery.sortable from jQueryUI. I just didn’t make friends with him, or he’s really buggy.
It works so-so with nested lists (I had to edit the source), but now it breaks the numbering in the numbered list. It also works unpleasantly when the height of the element is unknown. In general, there are a lot of things I don't like.

What alternative jQuery plugins do you recommend? Almost all googling on this topic points to "plugin-by-default".
I would go with something simple, like tableDnD , but for lists (normal flipping, without helpers, clones and animations).

But, in general, something more powerful and more flexible is also of interest.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Atrax, 2011-04-24
@Atrax

There is an add-on for sortable from jQuery UI:
mjsarfatti.com/sandbox/nestedSortable/
All the same, but for nested lists

M
Michael Rafailyk, 2013-09-09
@rafailyk

If you need simple functionality, I offer my solution in jQuery (42 lines of code).

E
ertaquo, 2011-04-24
@ertaquo

I can recommend the www.datatables.net/ plugin . It is quite easy to pull sorting out of it.

H
homm, 2011-04-24
@homm

In general, jQueryUI seems extremely buggy to me. Faced the same problem six months or a year ago. I made my own version. www.peeep.us/d0061c31
Menu and dish sections are being dragged. Moreover, the dishes are dragged both among themselves and thrown into menu sections.
Plugin code at the very beginning of the file natarelochke.ru/media/js/plate.control.js The code that uses it is below, in the InstallRestaurantUI() function.
Not that I planned to distribute this plugin in this form, without documentation and as part of a working draft :) But since you ask, maybe this will help.

A
Andrey Apoev, 2016-09-16
@ApoevAV

There is another option: rubaxa.github.io/Sortable
Article on Habré: https://habrahabr.ru/post/246373/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question