dd-drop-plugin.js.html revision 4fcbec6145d16637205990699912fb90f6a3807c
fa9e4066f08beec538e775443c5be79dd423fcabahrens<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
fa9e4066f08beec538e775443c5be79dd423fcabahrens<html>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<head>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <title>API: dd-plugin dd-drop-plugin.js (YUI Library)</title>
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock <link rel="stylesheet" type="text/css" href="assets/api.css">
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock <script type="text/javascript" src="assets/api-js"></script>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <script type="text/javascript" src="assets/ac-js"></script>
fa9e4066f08beec538e775443c5be79dd423fcabahrens</head>
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens<body id="yahoo-com">
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens<div id="doc3" class="yui-t2">
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens <div id="hd">
fa9e4066f08beec538e775443c5be79dd423fcabahrens <a href="http://developer.yahoo.com/yui/"><h1>Yahoo! UI Library</h1></a>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <h3>dd-plugin&nbsp; <span class="subtitle">3.00PR1</span></h3>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <p>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <a href="/index.html">Yahoo! UI Library</a>
fa9e4066f08beec538e775443c5be79dd423fcabahrens &gt; <a href="/module_dd-plugin.html">dd-plugin</a>
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens &gt; dd-drop-plugin.js (source view)
e6032be1b8a5a1d03081e0d62b624db95c4cf8b7marks </p>
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens </div>
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens <div id="bd">
fa9e4066f08beec538e775443c5be79dd423fcabahrens <div id="yui-main">
fa9e4066f08beec538e775443c5be79dd423fcabahrens <div class="yui-b">
fa9e4066f08beec538e775443c5be79dd423fcabahrens <form name="yui-classopts-form">
fa9e4066f08beec538e775443c5be79dd423fcabahrens <span id="classopts"><input type="checkbox" name="showprivate" id="showprivate" /> <label for="showprivate">Show Private</label></span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <span id="classopts"><input type="checkbox" name="showprotected" id="showprotected" /> <label for="showprotected">Show Protected</label></span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <span id="classopts"><input type="checkbox" name="showdeprecated" id="showdeprecated" /> <label for="showdeprecated">Show Deprecated</label></span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens </form>
fa9e4066f08beec538e775443c5be79dd423fcabahrens
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <div id="srcout">
fa9e4066f08beec538e775443c5be79dd423fcabahrens <style>
fa9e4066f08beec538e775443c5be79dd423fcabahrens #doc3 #classopts { display:none; }
fa9e4066f08beec538e775443c5be79dd423fcabahrens </style>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<div class="highlight" ><pre> <span class="c">/**</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<span class="c"> * This is a simple Drop plugin that can be attached to a Node via the plug method.</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<span class="c"> * @module dd-plugin</span>
169cdae232f15e542d6af0a9ce30c3f84222bc0fmarks<span class="c"> * @submodule dd-drop-plugin</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<span class="c"> */</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <span class="c">/**</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<span class="c"> * This is a simple Drop plugin that can be attached to a Node via the plug method.</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<span class="c"> * @class DropPlugin</span>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw<span class="c"> * @extends Drop</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<span class="c"> * @constructor</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<span class="c"> */</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens <span class="nx">Y</span><span class="o">.</span><span class="nx">Plugin</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">Plugin</span> <span class="o">||</span> <span class="o">{};</span>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
fa9e4066f08beec538e775443c5be79dd423fcabahrens <span class="k">var</span> <span class="nx">Drop</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">config</span><span class="o">)</span> <span class="o">{</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <span class="nx">config</span><span class="o">.</span><span class="nx">node</span> <span class="o">=</span> <span class="nx">config</span><span class="o">.</span><span class="nx">owner</span><span class="o">;</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <span class="nx">Drop</span><span class="o">.</span><span class="nx">superclass</span><span class="o">.</span><span class="nx">constructor</span><span class="o">.</span><span class="nx">apply</span><span class="o">(</span><span class="k">this</span><span class="o">,</span> <span class="nx">arguments</span><span class="o">);</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <span class="o">};</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens <span class="c">/**</span>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw<span class="c"> * @property NAME</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<span class="c"> * @description dd-drop-plugin</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<span class="c"> * @type {String}</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<span class="c"> */</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <span class="nx">Drop</span><span class="o">.</span><span class="nx">NAME</span> <span class="o">=</span> <span class="s2">&quot;dd-drop-plugin&quot;</span><span class="o">;</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <span class="c">/**</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<span class="c"> * @property NS</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<span class="c"> * @description The Drop instance will be placed on the Node instance under the drop namespace. It can be accessed via Node.drop;</span>
fa9e4066f08beec538e775443c5be79dd423fcabahrens<span class="c"> * @type {String}</span>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw<span class="c"> */</span>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <span class="nx">Drop</span><span class="o">.</span><span class="nx">NS</span> <span class="o">=</span> <span class="s2">&quot;drop&quot;</span><span class="o">;</span>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <span class="nx">Y</span><span class="o">.</span><span class="nx">extend</span><span class="o">(</span><span class="nx">Drop</span><span class="o">,</span> <span class="nx">Y</span><span class="o">.</span><span class="nx">DD</span><span class="o">.</span><span class="nx">Drop</span><span class="o">);</span>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <span class="nx">Y</span><span class="o">.</span><span class="nx">Plugin</span><span class="o">.</span><span class="nx">Drop</span> <span class="o">=</span> <span class="nx">Drop</span><span class="o">;</span>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw</pre></div>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </div>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </div>
fa9e4066f08beec538e775443c5be79dd423fcabahrens </div>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <div class="yui-b">
fa9e4066f08beec538e775443c5be79dd423fcabahrens <div class="nav">
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens <div class="module">
fa9e4066f08beec538e775443c5be79dd423fcabahrens <h4>Modules</h4>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <ul class="content">
fa9e4066f08beec538e775443c5be79dd423fcabahrens
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="module_anim.html">anim</a></li>
fa9e4066f08beec538e775443c5be79dd423fcabahrens
169cdae232f15e542d6af0a9ce30c3f84222bc0fmarks <li class=""><a href="module_attribute.html">attribute</a></li>
fa9e4066f08beec538e775443c5be79dd423fcabahrens
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="module_base.html">base</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="module_dd.html">dd</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class="selected"><a href="module_dd-plugin.html">dd-plugin</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="module_dump.html">dump</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="module_event.html">event</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="module_io.html">io</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="module_node.html">node</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="module_oop.html">oop</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="module_queue.html">queue</a></li>
fa9e4066f08beec538e775443c5be79dd423fcabahrens
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="module_substitute.html">substitute</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="module_yui.html">yui</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </ul>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </div>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <div class="module">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <h4>Classes</h4>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <ul class="content">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="DragPlugin.html">DragPlugin</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="DropPlugin.html">DropPlugin</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </ul>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </div>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <div class="module">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <h4>Files</h4>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <ul class="content">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class="selected"><a href="dd-drop-plugin.js.html">dd-drop-plugin.js</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="dd-plugin.js.html">dd-plugin.js</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </ul>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </div>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </div>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </div>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </div>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <div id="ft">
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <hr />
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw Copyright &copy; 2008 Yahoo! Inc. All rights reserved.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw </div>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw</div>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw</body>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw</html>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw