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

📄 ext.layer.html.svn-base

📁 PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。
💻 SVN-BASE
📖 第 1 页 / 共 5 页
字号:
                </div>
                        </div>
        </td>
        <td class="msource"><a ext:cls="Ext.Element" ext:member="#addClassOnClick" href="output/Ext.Element.html#addClassOnClick">Element</a></td>
    </tr>
        <tr class="method-row inherited alt expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.Layer-addClassOnFocus"></a>
            <b>addClassOnFocus</b>(&nbsp;<code>String className</code>&nbsp;) : Ext.Element            <div class="mdesc">
                        <div class="short">Sets up event handlers to add and remove a css class when this element has the focus</div>
            <div class="long">
                Sets up event handlers to add and remove a css class when this element has the focus    <div class="mdetail-params">
        <strong>Parameters:</strong>
        <ul><li><code>className</code> : String<div class="sub-desc"></div></li>        </ul>
        <strong>Returns:</strong>
        <ul>
            <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
        </ul>
    </div>
                </div>
                        </div>
        </td>
        <td class="msource"><a ext:cls="Ext.Element" ext:member="#addClassOnFocus" href="output/Ext.Element.html#addClassOnFocus">Element</a></td>
    </tr>
        <tr class="method-row inherited expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.Layer-addClassOnOver"></a>
            <b>addClassOnOver</b>(&nbsp;<code>String className</code>&nbsp;) : Ext.Element            <div class="mdesc">
                        <div class="short">Sets up event handlers to add and remove a css class when the mouse is over this element</div>
            <div class="long">
                Sets up event handlers to add and remove a css class when the mouse is over this element    <div class="mdetail-params">
        <strong>Parameters:</strong>
        <ul><li><code>className</code> : String<div class="sub-desc"></div></li>        </ul>
        <strong>Returns:</strong>
        <ul>
            <li><code>Ext.Element</code><div class="sub-desc">this</div></li>
        </ul>
    </div>
                </div>
                        </div>
        </td>
        <td class="msource"><a ext:cls="Ext.Element" ext:member="#addClassOnOver" href="output/Ext.Element.html#addClassOnOver">Element</a></td>
    </tr>
        <tr class="method-row inherited alt expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.Layer-addKeyListener"></a>
            <b>addKeyListener</b>(&nbsp;<code>Number/Array/Object/String key</code>, <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : Ext.KeyMap            <div class="mdesc">
                        <div class="short">Convenience method for constructing a KeyMap</div>
            <div class="long">
                Convenience method for constructing a KeyMap    <div class="mdetail-params">
        <strong>Parameters:</strong>
        <ul><li><code>key</code> : Number/Array/Object/String<div class="sub-desc">Either a string with the keys to listen for, the numeric key code, array of key codes or an object with the following options:{key: (number or array), shift: (true/false), ctrl: (true/false), alt: (true/false)}</div></li><li><code>fn</code> : Function<div class="sub-desc">The function to call</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function</div></li>        </ul>
        <strong>Returns:</strong>
        <ul>
            <li><code>Ext.KeyMap</code><div class="sub-desc">The KeyMap created</div></li>
        </ul>
    </div>
                </div>
                        </div>
        </td>
        <td class="msource"><a ext:cls="Ext.Element" ext:member="#addKeyListener" href="output/Ext.Element.html#addKeyListener">Element</a></td>
    </tr>
        <tr class="method-row inherited expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.Layer-addKeyMap"></a>
            <b>addKeyMap</b>(&nbsp;<code>Object config</code>&nbsp;) : Ext.KeyMap            <div class="mdesc">
                        <div class="short">Creates a KeyMap for this element</div>
            <div class="long">
                Creates a KeyMap for this element    <div class="mdetail-params">
        <strong>Parameters:</strong>
        <ul><li><code>config</code> : Object<div class="sub-desc">The KeyMap config. See <a ext:cls="Ext.KeyMap" href="output/Ext.KeyMap.html">Ext.KeyMap</a> for more details</div></li>        </ul>
        <strong>Returns:</strong>
        <ul>
            <li><code>Ext.KeyMap</code><div class="sub-desc">The KeyMap created</div></li>
        </ul>
    </div>
                </div>
                        </div>
        </td>
        <td class="msource"><a ext:cls="Ext.Element" ext:member="#addKeyMap" href="output/Ext.Element.html#addKeyMap">Element</a></td>
    </tr>
        <tr class="method-row inherited alt expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.Layer-addListener"></a>
            <b>addListener</b>(&nbsp;<code>String eventName</code>, <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">
                        <div class="short">Appends an event handler to this element.  The shorthand version <a ext:cls="Ext.Element" ext:member="on" href="output/Ext.Element.html#on">on</a> is equivalent.</div>
            <div class="long">
                Appends an event handler to this element.  The shorthand version <a ext:cls="Ext.Element" ext:member="on" href="output/Ext.Element.html#on">on</a> is equivalent.    <div class="mdetail-params">
        <strong>Parameters:</strong>
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to handle</div></li><li><code>fn</code> : Function<div class="sub-desc">The handler function the event invokes. This function is passedthe following parameters:<ul><li>evt : EventObject<div class="sub-desc">The <a ext:cls="Ext.EventObject" href="output/Ext.EventObject.html">EventObject</a> describing the event.</div></li><li>t : Element<div class="sub-desc">The <a ext:cls="Ext.Element" href="output/Ext.Element.html">Element</a> which was the target of the event.Note that this may be filtered by using the <tt>delegate</tt> option.</div></li><li>o : Object<div class="sub-desc">The the options object from the addListener call.</div></li></ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (The <tt>this</tt> reference) of the handler function. Defaultsto this Element.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration properties.This may contain any of the following properties:<ul><li>scope {Object} : The scope in which to execute the handler function. The handler function's "this" context.</li><li>delegate {String} : A simple selector to filter the target or look for a descendant of the target</li><li>stopEvent {Boolean} : True to stop the event. That is stop propagation, and prevent the default action.</li><li>preventDefault {Boolean} : True to prevent the default action</li><li>stopPropagation {Boolean} : True to prevent event propagation</li><li>normalized {Boolean} : False to pass a browser event to the handler function instead of an Ext.EventObject</li><li>delay {Number} : The number of milliseconds to delay the invocation of the handler after te event fires.</li><li>single {Boolean} : True to add a handler to handle just the next firing of the event, and then remove itself.</li><li>buffer {Number} : Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayedby the specified number of milliseconds. If the event fires again within that time, the originalhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</li></ul><br><p><b>Combining Options</b><br>In the following examples, the shorthand form <a ext:cls="Ext.Element" ext:member="on" href="output/Ext.Element.html#on">on</a> is used rather than the more verboseaddListener. The two are equivalent. Using the options argument, it is possible to combine differenttypes of listeners:<br><br>A normalized, delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to theoptions object. The options object is available as the third parameter in the handler function.<div style="margin: 5px 20px 20px;">Code:<pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {    single: true,    delay: 100,    stopEvent : true,    forumId: 4});</code></pre></p><p><b>Attaching multiple handlers in 1 call</b><br>The method also allows for a single argument to be passed which is a config object containing propertieswhich specify multiple handlers.</p><p>Code:<pre><code></p>el.on({    <em>'click'</em> : {        fn: <b>this</b>.onClick,        scope: <b>this</b>,        delay: 100    },    <em>'mouseover'</em> : {        fn: <b>this</b>.onMouseOver,        scope: <b>this</b>    },    <em>'mouseout'</em> : {        fn: <b>this</b>.onMouseOut,        scope: <b>this</b>    }});</code></pre><p>Or a shorthand syntax:<br>Code:<pre><code></p>el.on({    <em>'click'</em> : <b>this</b>.onClick,    <em>'mouseover'</em> : <b>this</b>.onMouseOver,    <em>'mouseout'</em> : <b>this</b>.onMouseOut,    scope: <b>this</b>});</code></pre></div></li>        </ul>
        <strong>Returns:</strong>
        <ul>
            <li><code>void</code></li>
        </ul>
    </div>
                </div>
                        </div>
        </td>
        <td class="msource"><a ext:cls="Ext.Element" ext:member="#addListener" href="output/Ext.Element.html#addListener">Element</a></td>
    </tr>
        <tr class="method-row inherited expandable">
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
        <td class="sig">
        <a id="Ext.Layer-alignTo"></a>
            <b>alignTo</b>(&nbsp;<code>Mixed element</code>, <code>String position</code>, <span class="optional" title="Optional">[<code>Array offsets</code>]</span>, <span class="optional" title="Optional">[<code>Boolean/Object animate</code>]</span>&nbsp;) : Ext.Element            <div class="mdesc">
                        <div class="short">Aligns this element with another element relative to the specified anchor points. If the other element is thedocumen...</div>
            <div class="long">
                Aligns this element with another element relative to the specified anchor points. If the other element is thedocument it aligns it to the viewport.The position parameter is optional, and can be specified in any one of the following formats:<ul><li><b>Blank</b>: Defaults to aligning the element's top-left corner to the target's bottom-left corner ("tl-bl").</li><li><b>One anchor (deprecated)</b>: The passed anchor position is used as the target element's anchor point.The element being aligned will position its top-left corner (tl) to that point.  <i>This method has beendeprecated in favor of the newer two anchor syntax below</i>.</li><li><b>Two anchors</b>: If two values from the table below are passed separated by a dash, the first value is used as theelement's anchor point, and the second value is used as the target's anchor point.</li></ul>In addition to the anchor points, the position parameter also supports the "?" character.  If "?" is passed at the end ofthe position string, the element will attempt to align as specified, but the position will be adjusted to constrain tothe viewport if necessary.  Note that the element being aligned might be swapped to align to a different position thanthat specified in order to enforce the viewport constraints.Following are all of the supported anchor positions:<pre>Value  Description-----  -----------------------------tl     The top left corner (default)t      The center of the top edgetr     The top right cornerl      The center of the left edgec      In the center of the elementr      The center of the right edgebl     The bottom left corner

⌨️ 快捷键说明

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