📄 ext.dd.dragdropmgr.html
字号:
<li><code>boolean</code><div class="sub-desc">true if typeof oDD = DragDrop</div></li> </ul> </div> </div> </div> </td> <td class="msource">DragDropMgr</td> </tr> <tr class="method-row alt expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDropMgr-lock"></a> <b>lock</b>() : void <div class="mdesc"> <div class="short"><static> Lock all drag and drop functionality</div> <div class="long"> <static> Lock all drag and drop functionality <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li>None.</li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDropMgr</td> </tr> <tr class="method-row expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDropMgr-moveToEl"></a> <b>moveToEl</b>( <code>HTMLElement moveEl</code>, <code>HTMLElement targetEl</code> ) : void <div class="mdesc"> <div class="short"><static> Sets the x/y position of an element to the location of thetarget element.</div> <div class="long"> <static> Sets the x/y position of an element to the location of thetarget element. <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>moveEl</code> : HTMLElement<div class="sub-desc">The element to move</div></li><li><code>targetEl</code> : HTMLElement<div class="sub-desc">The position reference element</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDropMgr</td> </tr> <tr class="method-row alt expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDropMgr-numericSort"></a> <b>numericSort</b>() : void <div class="mdesc"> <div class="short"><static> Numeric array sort function</div> <div class="long"> <static> Numeric array sort function <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li>None.</li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDropMgr</td> </tr> <tr class="method-row expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDropMgr-refreshCache"></a> <b>refreshCache</b>( <code>Object groups</code> ) : void <div class="mdesc"> <div class="short"><static> Refreshes the cache of the top-left and bottom-right points of thedrag and drop objects in the specif...</div> <div class="long"> <static> Refreshes the cache of the top-left and bottom-right points of thedrag and drop objects in the specified group(s). This is in theformat that is stored in the drag and drop instance, so typicalusage is:<code>Ext.dd.DragDropMgr.refreshCache(ddinstance.groups);</code>Alternatively:<code>Ext.dd.DragDropMgr.refreshCache({group1:true, group2:true});</code>@TODO this really should be an indexed array. Alternatively thismethod could accept both. <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>groups</code> : Object<div class="sub-desc">an associative array of groups to refresh</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDropMgr</td> </tr> <tr class="method-row alt expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDropMgr-regDragDrop"></a> <b>regDragDrop</b>( <code>DragDrop oDD</code>, <code>String sGroup</code> ) : void <div class="mdesc"> <div class="short"><static> Each DragDrop instance must be registered with the DragDropMgr.This is executed in DragDrop.init()</div> <div class="long"> <static> Each DragDrop instance must be registered with the DragDropMgr.This is executed in DragDrop.init() <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>oDD</code> : DragDrop<div class="sub-desc">the DragDrop object to register</div></li><li><code>sGroup</code> : String<div class="sub-desc">the name of the group this element belongs to</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDropMgr</td> </tr> <tr class="method-row expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDropMgr-regHandle"></a> <b>regHandle</b>( <code>String sDDId</code>, <code>String sHandleId</code> ) : void <div class="mdesc"> <div class="short"><static> Each DragDrop handle element must be registered. This is doneautomatically when executing DragDrop.s...</div> <div class="long"> <static> Each DragDrop handle element must be registered. This is doneautomatically when executing DragDrop.setHandleElId() <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>sDDId</code> : String<div class="sub-desc">the DragDrop id this element is a handle for</div></li><li><code>sHandleId</code> : String<div class="sub-desc">the id of the element that is the draghandle</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDropMgr</td> </tr> <tr class="method-row alt expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDropMgr-startDrag"></a> <b>startDrag</b>( <code>x {int}</code>, <code>y {int}</code> ) : void <div class="mdesc"> <div class="short"><static> Fired when either the drag pixel threshol or the mousedown holdtime threshold has been met.</div> <div class="long"> <static> Fired when either the drag pixel threshol or the mousedown holdtime threshold has been met. <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>{int}</code> : x<div class="sub-desc">the X position of the original mousedown</div></li><li><code>{int}</code> : y<div class="sub-desc">the Y position of the original mousedown</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDropMgr</td> </tr> <tr class="method-row expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDropMgr-stopEvent"></a> <b>stopEvent</b>( <code>Event e</code> ) : void <div class="mdesc"> <div class="short"><static> Utility to stop event propagation and event default, if thesefeatures are turned on.</div> <div class="long"> <static> Utility to stop event propagation and event default, if thesefeatures are turned on. <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>e</code> : Event<div class="sub-desc">the event as returned by this.getEvent()</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDropMgr</td> </tr> <tr class="method-row alt expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDropMgr-swapNode"></a> <b>swapNode</b>( <code>n1 the</code>, <code>n2 the</code> ) : void <div class="mdesc"> <div class="short"><static> Swap two nodes. In IE, we use the native method, for others weemulate the IE behavior</div> <div class="long"> <static> Swap two nodes. In IE, we use the native method, for others weemulate the IE behavior <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>the</code> : n1<div class="sub-desc">first node to swap</div></li><li><code>the</code> : n2<div class="sub-desc">other node to swap</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDropMgr</td> </tr> <tr class="method-row expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDropMgr-unlock"></a> <b>unlock</b>() : void <div class="mdesc"> <div class="short"><static> Unlock all drag and drop functionality</div> <div class="long"> <static> Unlock all drag and drop functionality <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li>None.</li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDropMgr</td> </tr> <tr class="method-row alt expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDropMgr-verifyEl"></a> <b>verifyEl</b>( <code>HTMLElement el</code> ) : boolean <div class="mdesc"> <div class="short"><static> This checks to make sure an element exists and is in the DOM. Themain purpose is to handle cases whe...</div> <div class="long"> <static> This checks to make sure an element exists and is in the DOM. Themain purpose is to handle cases where innerHTML is used to removedrag and drop objects from the DOM. IE provides an 'unspecifiederror' when trying to access the offsetParent of such an element <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>el</code> : HTMLElement<div class="sub-desc">the element to check</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>boolean</code><div class="sub-desc">true if the element looks usable</div></li> </ul> </div> </div> </div> </td> <td class="msource">DragDropMgr</td> </tr> </table> <a id="Ext.dd.DragDropMgr-events"></a> <h2>Public Events</h2> <div class="no-members">This class has no public events.</div> </div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -