Drag.Dock 1.0
Details
- Author
- Sean McArthur
- Current version
- 1.0
- GitHub
- seanmonstar/Drag.Dock
- Downloads
- 1515
- 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.
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