Drag.Dock 1.0
Details
- Author
- Sean McArthur
- Current version
- 1.0
- GitHub
- seanmonstar/Drag.Dock
- Downloads
- 667
- Category
- Interface
- Tags
- Report
- GitHub Issues
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.
License
MIT License. Copyright 2008-2010 Sean McArthur.