Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (15 sloc) 0.607 kb
<!DOCTYPE html>
<title>Creating a Constrained Draggable by Proxy Node</title>
#demo { width: 100px; height: 100px; border: 1px #000 solid; background: #d72; }
#box { width: 400px; height: 300px; border: 1px #000 dashed; background: #ccc; }
<div id="box"><div id="demo"></div></div>
<script src=""></script>
YUI().use('dd-drag', 'dd-proxy', 'dd-constrain', function (Y) {
var dd = new Y.DD.Drag({ node: '#demo' });
dd.plug(Y.Plugin.DDConstrained, { constrain2node: '#box' });
Jump to Line
Something went wrong with that request. Please try again.