📄 ext.dd.dragdrop.html
字号:
</ul> </div> </div> </div> </td> <td class="msource">DragDrop</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.DragDrop-removeInvalidHandleType"></a> <b>removeInvalidHandleType</b>( <code>string tagName</code> ) : void <div class="mdesc"> <div class="short">Unsets an excluded tag name set by addInvalidHandleType</div> <div class="long"> Unsets an excluded tag name set by addInvalidHandleType <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>tagName</code> : string<div class="sub-desc">the type of element to unexclude</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDrop</td> </tr> <tr class="method-row expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDrop-resetConstraints"></a> <b>resetConstraints</b>( <code>boolean maintainOffset</code> ) : void <div class="mdesc"> <div class="short">resetConstraints must be called if you manually reposition a dd element.</div> <div class="long"> resetConstraints must be called if you manually reposition a dd element. <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>maintainOffset</code> : boolean<div class="sub-desc"></div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDrop</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.DragDrop-setDragElId"></a> <b>setDragElId</b>( <code>id {string}</code> ) : void <div class="mdesc"> <div class="short">Allows you to specify that an element other than the linked elementwill be moved with the cursor during a drag</div> <div class="long"> Allows you to specify that an element other than the linked elementwill be moved with the cursor during a drag <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>{string}</code> : id<div class="sub-desc">the id of the element that will be used to initiate the drag</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDrop</td> </tr> <tr class="method-row expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDrop-setHandleElId"></a> <b>setHandleElId</b>( <code>id {string}</code> ) : void <div class="mdesc"> <div class="short">Allows you to specify a child of the linked element that should beused to initiate the drag operation. An example o...</div> <div class="long"> Allows you to specify a child of the linked element that should beused to initiate the drag operation. An example of this would be ifyou have a content div with text and links. Clicking anywhere in thecontent area would normally start the drag operation. Use this methodto specify that an element inside of the content div is the elementthat starts the drag operation. <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>{string}</code> : id<div class="sub-desc">the id of the element that will be used toinitiate the drag.</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDrop</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.DragDrop-setInitialPosition"></a> <b>setInitialPosition</b>( <code>int diffX</code>, <code>int diffY</code> ) : void <div class="mdesc"> <div class="short">Stores the initial placement of the linked element.</div> <div class="long"> Stores the initial placement of the linked element. <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>diffX</code> : int<div class="sub-desc">the X offset, default 0</div></li><li><code>diffY</code> : int<div class="sub-desc">the Y offset, default 0</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDrop</td> </tr> <tr class="method-row expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDrop-setOuterHandleElId"></a> <b>setOuterHandleElId</b>( <code>id the</code> ) : void <div class="mdesc"> <div class="short">Allows you to set an element outside of the linked element as a draghandle</div> <div class="long"> Allows you to set an element outside of the linked element as a draghandle <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>the</code> : id<div class="sub-desc">id of the element that will be used to initiate the drag</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDrop</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.DragDrop-setPadding"></a> <b>setPadding</b>( <code>int iTop</code>, <code>int iRight</code>, <code>int iBot</code>, <code>int iLeft</code> ) : void <div class="mdesc"> <div class="short">Configures the padding for the target zone in px. Effectively expands(or reduces) the virtual object size for targe...</div> <div class="long"> Configures the padding for the target zone in px. Effectively expands(or reduces) the virtual object size for targeting calculations.Supports css-style shorthand; if only one parameter is passed, all sideswill have that padding, and if only two are passed, the top and bottomwill have the first param, the left and right the second. <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>iTop</code> : int<div class="sub-desc">Top pad</div></li><li><code>iRight</code> : int<div class="sub-desc">Right pad</div></li><li><code>iBot</code> : int<div class="sub-desc">Bot pad</div></li><li><code>iLeft</code> : int<div class="sub-desc">Left pad</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDrop</td> </tr> <tr class="method-row expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDrop-setXConstraint"></a> <b>setXConstraint</b>( <code>int iLeft</code>, <code>int iRight</code>, <code>int iTickSize</code> ) : void <div class="mdesc"> <div class="short">By default, the element can be dragged any place on the screen. Usethis method to limit the horizontal travel of th...</div> <div class="long"> By default, the element can be dragged any place on the screen. Usethis method to limit the horizontal travel of the element. Pass in0,0 for the parameters if you want to lock the drag to the y axis. <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>iLeft</code> : int<div class="sub-desc">the number of pixels the element can move to the left</div></li><li><code>iRight</code> : int<div class="sub-desc">the number of pixels the element can move to theright</div></li><li><code>iTickSize</code> : int<div class="sub-desc">optional parameter for specifying that theelementshould move iTickSize pixels at a time.</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDrop</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.DragDrop-setYConstraint"></a> <b>setYConstraint</b>( <code>int iUp</code>, <code>int iDown</code>, <code>int iTickSize</code> ) : void <div class="mdesc"> <div class="short">By default, the element can be dragged any place on the screen. Setthis to limit the vertical travel of the element...</div> <div class="long"> By default, the element can be dragged any place on the screen. Setthis to limit the vertical travel of the element. Pass in 0,0 for theparameters if you want to lock the drag to the x axis. <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>iUp</code> : int<div class="sub-desc">the number of pixels the element can move up</div></li><li><code>iDown</code> : int<div class="sub-desc">the number of pixels the element can move down</div></li><li><code>iTickSize</code> : int<div class="sub-desc">optional parameter for specifying that theelement should move iTickSize pixels at a time.</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDrop</td> </tr> <tr class="method-row expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDrop-startDrag"></a> <b>startDrag</b>( <code>int X</code>, <code>int Y</code> ) : void <div class="mdesc"> <div class="short">Abstract method called after a drag/drop object is clickedand the drag or mousedown time thresholds have beeen met.</div> <div class="long"> Abstract method called after a drag/drop object is clickedand the drag or mousedown time thresholds have beeen met. <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li><code>X</code> : int<div class="sub-desc">click location</div></li><li><code>Y</code> : int<div class="sub-desc">click location</div></li> </ul> <strong>Returns:</strong> <ul> <li><code>void</code></li> </ul> </div> </div> </div> </td> <td class="msource">DragDrop</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.DragDrop-toString"></a> <b>toString</b>() : string <div class="mdesc"> <div class="short">toString method</div> <div class="long"> toString method <div class="mdetail-params"> <strong>Parameters:</strong> <ul><li>None.</li> </ul> <strong>Returns:</strong> <ul> <li><code>string</code><div class="sub-desc">string representation of the dd obj</div></li> </ul> </div> </div> </div> </td> <td class="msource">DragDrop</td> </tr> <tr class="method-row expandable"> <td class="micon"><a class="exi" href="#expand"> </a></td> <td class="sig"> <a id="Ext.dd.DragDrop-unlock"></a> <b>unlock</b>() : void <div class="mdesc"> <div class="short">Unlock this instace</div> <div class="long"> Unlock this instace <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">DragDrop</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.DragDrop-unreg"></a> <b>unreg</b>() : void <div class="mdesc"> <div class="short">Remove all drag and drop hooks for this element</div> <div class="long"> Remove all drag and drop hooks for this element <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">DragDrop</td> </tr> </table> <a id="Ext.dd.DragDrop-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 + -