Search code examples
javascriptuser-interfacedrag-and-drop

Drag and drop to reorder HTML lists


I have an app for which I would like to be able to drag and drop to reorder and arrange colours into groups. jQuery's sortable for grids seems rather unresponsive and a little buggy. microjs recommends kbjr's DragDrop, but that library has no concept of lists, only movable objects. Sproutcore has a nice implementation, but I can't find a demo of it working for a grid.

My UI looks like this:

groups of colours

and I'd like users to be able to drag colours around within the groups as well as drag them between groups.


Solution

  • Try this: HTML5 Sortable. It is a jQuery plugin to create sortable lists and grids using native HTML5 drag and drop API.