Skip to content

Fork of html5sortable plugin with compatibility with jquery.event.drag plugin.

Notifications You must be signed in to change notification settings

ssafejava/html5sortable-jquery.event.drag-compat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

HTML5Sortable-jquery.event.drag-compat

Simple fork of html5sortable that adds compatibility with jquery.event.drag, which unfortunately completely hijacks drag events and breaks the original plugin.

This is a limited port and does not contain some of the same features (connectWith, etc.). It was enough for my needs.

See html5sortable or the source for more information.

Usage

$('.sortableParentWithChildren').sortable({
  forcePlaceholderSize: false,
  items: '',
  mode: 'horizontal'
})

Options

mode: String (options: 'horizontal', 'vertical'; default: 'horizontal')
items: String (selector to filter children, e.g. ':not(.disabled)')
forcePlaceholderSize: Boolean (forces placeholder width & height to be identical to item being dragged, default: false)

Events

sortstart, sortend, sortupdate (only fired on a sort change)

License

MIT

About

Fork of html5sortable plugin with compatibility with jquery.event.drag plugin.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published