Drag.Dock 1.0

An extension of MooTools More's Drag.Move, allowing your elements to dock to a container's edge.



Details

Author
Sean McArthur
Current version
1.0
GitHub
seanmonstar/Drag.Dock
Downloads
2136
Category
Interface
Tags
Report
GitHub Issues

Releases


Dependencies

  • core/1.2.1: *
  • more/1.2.1.1:
    • Drag
    • Drag.Move

How to use

Invoke the constructor. The first argument is the element to drag, drop, and dock. A second optional argument is a set of options to override the defaults.

var docker = new Drag.Dock($('DragMe'));
docker.dock('right');

Uses Drag.Move from MooTools More.

Demo can be seen here


Options

Version 1.0

  • proximity: (int) The number of pixels away from an edge when the element should become docked to the edge. Default: 20.

Plus all options from Drag and Drag.Move.


License

MIT License. Copyright 2008-2010 Sean McArthur.


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus