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 <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 <a href="http://developer.yahoo.com/yui/"><h1>Yahoo! UI Library</h1></a>
fa9e4066f08beec538e775443c5be79dd423fcabahrens <h3>dd-plugin <span class="subtitle">3.00PR1</span></h3>
fa9e4066f08beec538e775443c5be79dd423fcabahrens > dd-drop-plugin.js (source view)
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 #doc3 #classopts { display:none; }
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"> * This is a simple Drop plugin that can be attached to a Node via the plug method.</span>
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>
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="nx">Drop</span><span class="o">.</span><span class="nx">NAME</span> <span class="o">=</span> <span class="s2">"dd-drop-plugin"</span><span class="o">;</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>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <span class="nx">Drop</span><span class="o">.</span><span class="nx">NS</span> <span class="o">=</span> <span class="s2">"drop"</span><span class="o">;</span>
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>
169cdae232f15e542d6af0a9ce30c3f84222bc0fmarks <li class=""><a href="module_attribute.html">attribute</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class="selected"><a href="module_dd-plugin.html">dd-plugin</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="module_substitute.html">substitute</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="DragPlugin.html">DragPlugin</a></li>
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw <li class=""><a href="DropPlugin.html">DropPlugin</a></li>
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 Copyright © 2008 Yahoo! Inc. All rights reserved.