Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (16 sloc) 0.512 kB
<!DOCTYPE html>
<title>Creating a Draggable Node with a Handle</title>
<style>
#demo { width: 100px; height: 100px; border: 1px #000 solid; background: #d72; }
#demo p { margin: 0px; padding 3px; border-bottom: 1px #000 solid; background: #e9e; }
</style>
<div id="demo"><p>handle</p></div>
<script src="http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js"></script>
<script>
YUI().use('dd-drag', function (Y) {
var dd = new Y.DD.Drag({
node: '#demo',
handles: ['p']
});
});
</script>
Jump to Line
Something went wrong with that request. Please try again.