Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 2017d307c9
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (39 sloc) 1.093 kB

jquery.dragdroplist

Jquery drag-n-drop list plugin

Allow user to drag/drop items within a list. Other list items are move around dragging element.

Draggable elements within the list should have the class 'draggable'

NB: Requires jquery.dragndrop.js (http://github.com/tbrd/jquery.dragndrop)

jquery.dragdroplist currently only supports vertical lists.

Usage

$().dragdroplist(Options)

Example

$('.drag-drop-list').dragdroplist({
    translateY: true,
    handle: '.drag-handle'
});

Settings

tagName (String)

Default: 'li' Tag name for draggable elements (elements must all be of same type)

handle (String)

Default: undefined Selector for child element to use as drag handle.

translateY (Boolean)

Default: true Allow user to drag items along Y axis

Events

drop.dragdroplist

Fired when user drops element

Author

http://github.com/tbrd Tom Hamshere

License

Copyright 2011 Twitter, Inc.

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Jump to Line
Something went wrong with that request. Please try again.