concept list in category jQuery

appears as: list, lists, The list, lists, A list, list
jQuery UI in Action

This is an excerpt from Manning's book jQuery UI in Action.

  • Interactions are jQuery plugins that give the user the ability to interact with DOM elements. The draggable interaction allows users to drag elements around the screen, and the sortable interaction allows users to sort items in a list. We’ll cover interactions in chapter 5.
  • Figure 4.3. A tabs widget used to display information on movies. When the user clicks a movie in the list, its information is retrieved from the server and displayed in a new tab.

    Now that you’ve created the draggables, you have to create the droppable areas. You again randomize the list of colors . If you didn’t do this, the draggables would always be aligned with their appropriate droppable, which wouldn’t be much of a challenge for your users!

    5.3. Sortable: rearranging elements in a list

    One of the more common applications of draggable interfaces is the ability to sort items in a list. Although common, the sortable interaction is shockingly difficult to implement. You have to implement the logic to enable the mouse events for dragging, and then the collision detection from droppable, and then you need to reposition the items in the list to account for the rearranged list. Because of this, the sortable widget is the most complex widget in jQuery UI.