⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ext.dd.dragdrop.html

📁 Ext中文API,学习ext的同志只要你学会ext里的一种控件后其实其他的就大同小异了
💻 HTML
📖 第 1 页 / 共 4 页
字号:
    </div>                </div>                        </div>        </td>        <td class="msource">DragDrop</td>    </tr>        <tr class="method-row expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDrop-addInvalidHandleId"></a>            <b>addInvalidHandleId</b>(&nbsp;<code>string id</code>&nbsp;) : void            <div class="mdesc">                        <div class="short">Lets you to specify an element id for a child of a drag handlethat should not initiate a drag</div>            <div class="long">                Lets you to specify an element id for a child of a drag handlethat should not initiate a drag    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>id</code> : string<div class="sub-desc">the element id of the element you wish to ignore</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">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDrop-addInvalidHandleType"></a>            <b>addInvalidHandleType</b>(&nbsp;<code>string tagName</code>&nbsp;) : void            <div class="mdesc">                        <div class="short">Allows you to specify a tag name that should not start a drag operationwhen clicked.  This is designed to facilitate...</div>            <div class="long">                Allows you to specify a tag name that should not start a drag operationwhen clicked.  This is designed to facilitate embedding links within adrag handle that do something other than start the drag.    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>tagName</code> : string<div class="sub-desc">the type of element to exclude</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">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDrop-addToGroup"></a>            <b>addToGroup</b>(&nbsp;<code>sGroup {string}</code>&nbsp;) : void            <div class="mdesc">                        <div class="short">Add this instance to a group of related drag/drop objects.  Allinstances belong to at least one group, and can belon...</div>            <div class="long">                Add this instance to a group of related drag/drop objects.  Allinstances belong to at least one group, and can belong to as manygroups as needed.    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>{string}</code> : sGroup<div class="sub-desc">the name of the group</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">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDrop-applyConfig"></a>            <b>applyConfig</b>() : void            <div class="mdesc">                        <div class="short">Applies the configuration parameters that were passed into the constructor.This is supposed to happen at each level ...</div>            <div class="long">                Applies the configuration parameters that were passed into the constructor.This is supposed to happen at each level through the inheritance chain.  Soa DDProxy implentation will execute apply config on DDProxy, DD, andDragDrop in order to get all of the parameters that are available ineach object.    <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 expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDrop-clearConstraints"></a>            <b>clearConstraints</b>() : void            <div class="mdesc">                        <div class="short">Clears any constraints applied to this instance.  Also clears tickssince they can't exist independent of a constrain...</div>            <div class="long">                Clears any constraints applied to this instance.  Also clears tickssince they can't exist independent of a constraint at this time.    <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">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDrop-clearTicks"></a>            <b>clearTicks</b>() : void            <div class="mdesc">                        <div class="short">Clears any tick interval defined for this instance</div>            <div class="long">                Clears any tick interval defined for this instance    <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 expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDrop-constrainTo"></a>            <b>constrainTo</b>(&nbsp;<code>Mixed constrainTo</code>, <span class="optional" title="Optional">[<code>Object/Number pad</code>]</span>, <span class="optional" title="Optional">[<code>Boolean inContent</code>]</span>&nbsp;) : void            <div class="mdesc">                        <div class="short">Initializes the drag drop object's constraints to restrict movement to a certain element.Usage: var dd = new Ext.d...</div>            <div class="long">                Initializes the drag drop object's constraints to restrict movement to a certain element.Usage: <pre><code>var dd = <b>new</b> Ext.dd.DDProxy(<em>"dragDiv1"</em>, <em>"proxytest"</em>,                { dragElId: <em>"existingProxyDiv"</em> }); dd.startDrag = <b>function</b>(){     <b>this</b>.constrainTo(<em>"parent-id"</em>); };</code></pre>Or you can initalize it using the <a ext:cls="Ext.Element" href="output/Ext.Element.html">Ext.Element</a> object: <pre><code>Ext.get(<em>"dragDiv1"</em>).initDDProxy(<em>"proxytest"</em>, {dragElId: <em>"existingProxyDiv"</em>}, {     startDrag : <b>function</b>(){         <b>this</b>.constrainTo(<em>"parent-id"</em>);     } });</code></pre>    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>constrainTo</code> : Mixed<div class="sub-desc">The element to constrain to.</div></li><li><code>pad</code> : Object/Number<div class="sub-desc">(optional) Pad provides a way to specify "padding" of the constraints,and can be either a number for symmetrical padding (4 would be equal to {left:4, right:4, top:4, bottom:4}) oran object containing the sides to pad. For example: {right:10, bottom:10}</div></li><li><code>inContent</code> : Boolean<div class="sub-desc">(optional) Constrain the draggable in the content box of the element (inside padding and borders)</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">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDrop-endDrag"></a>            <b>endDrag</b>(&nbsp;<code>Event e</code>&nbsp;) : void            <div class="mdesc">                        <div class="short">Fired when we are done dragging the object</div>            <div class="long">                Fired when we are done dragging the object    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>e</code> : Event<div class="sub-desc">the mouseup event</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">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDrop-getDragEl"></a>            <b>getDragEl</b>() : HTMLElement            <div class="mdesc">                        <div class="short">Returns a reference to the actual element to drag.  By default this isthe same as the html element, but it can be as...</div>            <div class="long">                Returns a reference to the actual element to drag.  By default this isthe same as the html element, but it can be assigned to anotherelement. An example of this can be found in Ext.dd.DDProxy    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li>None.</li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>HTMLElement</code><div class="sub-desc">the html element</div></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">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDrop-getEl"></a>            <b>getEl</b>() : HTMLElement            <div class="mdesc">                        <div class="short">Returns a reference to the linked element</div>            <div class="long">                Returns a reference to the linked element    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li>None.</li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>HTMLElement</code><div class="sub-desc">the html element</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">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDrop-init"></a>            <b>init</b>(&nbsp;<code>id the</code>, <code>String sGroup</code>, <code>object config</code>&nbsp;) : void            <div class="mdesc">                        <div class="short">Sets up the DragDrop object.  Must be called in the constructor of anyExt.dd.DragDrop subclass</div>            <div class="long">                Sets up the DragDrop object.  Must be called in the constructor of anyExt.dd.DragDrop subclass    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>the</code> : id<div class="sub-desc">id of the linked element</div></li><li><code>sGroup</code> : String<div class="sub-desc">the group of related items</div></li><li><code>config</code> : object<div class="sub-desc">configuration attributes</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">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDrop-initTarget"></a>            <b>initTarget</b>(&nbsp;<code>id the</code>, <code>String sGroup</code>, <code>object config</code>&nbsp;) : void            <div class="mdesc">                        <div class="short">Initializes Targeting functionality only... the object does notget a mousedown handler.</div>            <div class="long">                Initializes Targeting functionality only... the object does notget a mousedown handler.    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>the</code> : id<div class="sub-desc">id of the linked element</div></li><li><code>sGroup</code> : String<div class="sub-desc">the group of related items</div></li><li><code>config</code> : object<div class="sub-desc">configuration attributes</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">&nbsp;</a></td>        <td class="sig">        <a id="Ext.dd.DragDrop-isLocked"></a>            <b>isLocked</b>() : boolean            <div class="mdesc">                        <div class="short">Returns true if this instance is locked, or the drag drop mgr is locked(meaning that all drag/drop is disabled on th...</div>            <div class="long">                Returns true if this instance is locked, or the drag drop mgr is locked(meaning that all drag/drop is disabled on the page.)    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li>None.</li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>boolean</code><div class="sub-desc">true if this obj or all drag/drop is locked, else false</div></li>        </ul>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -