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

📄 ext.template.html

📁 Ext中文API,学习ext的同志只要你学会ext里的一种控件后其实其他的就大同小异了
💻 HTML
📖 第 1 页 / 共 2 页
字号:
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.Template-applyTemplate"></a>            <b>applyTemplate</b>(&nbsp;<code>Object/Array values</code>&nbsp;) : String            <div class="mdesc">                        <div class="short">Returns an HTML fragment of this template with the specified values applied.</div>            <div class="long">                Returns an HTML fragment of this template with the specified values applied.    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>values</code> : Object/Array<div class="sub-desc">The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</div></li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>String</code><div class="sub-desc">The HTML fragment</div></li>        </ul>    </div>                </div>                        </div>        </td>        <td class="msource">Template</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.Template-compile"></a>            <b>compile</b>() : Ext.Template            <div class="mdesc">                        <div class="short">Compiles the template into an internal function, eliminating the RegEx overhead.</div>            <div class="long">                Compiles the template into an internal function, eliminating the RegEx overhead.    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li>None.</li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>Ext.Template</code><div class="sub-desc">this</div></li>        </ul>    </div>                </div>                        </div>        </td>        <td class="msource">Template</td>    </tr>        <tr class="method-row expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.Template-insertAfter"></a>            <b>insertAfter</b>(&nbsp;<code>Mixed el</code>, <code>Object/Array values</code>, <span class="optional" title="Optional">[<code>Boolean returnElement</code>]</span>&nbsp;) : HTMLElement/Ext.Element            <div class="mdesc">                        <div class="short">Applies the supplied values to the template and inserts the new node(s) after el.</div>            <div class="long">                Applies the supplied values to the template and inserts the new node(s) after el.    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>el</code> : Mixed<div class="sub-desc">The context element</div></li><li><code>values</code> : Object/Array<div class="sub-desc">The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</div></li><li><code>returnElement</code> : Boolean<div class="sub-desc">(optional) true to return a Ext.Element (defaults to undefined)</div></li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>HTMLElement/Ext.Element</code><div class="sub-desc">The new node or Element</div></li>        </ul>    </div>                </div>                        </div>        </td>        <td class="msource">Template</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.Template-insertBefore"></a>            <b>insertBefore</b>(&nbsp;<code>Mixed el</code>, <code>Object/Array values</code>, <span class="optional" title="Optional">[<code>Boolean returnElement</code>]</span>&nbsp;) : HTMLElement/Ext.Element            <div class="mdesc">                        <div class="short">Applies the supplied values to the template and inserts the new node(s) before el.</div>            <div class="long">                Applies the supplied values to the template and inserts the new node(s) before el.    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>el</code> : Mixed<div class="sub-desc">The context element</div></li><li><code>values</code> : Object/Array<div class="sub-desc">The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</div></li><li><code>returnElement</code> : Boolean<div class="sub-desc">(optional) true to return a Ext.Element (defaults to undefined)</div></li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>HTMLElement/Ext.Element</code><div class="sub-desc">The new node or Element</div></li>        </ul>    </div>                </div>                        </div>        </td>        <td class="msource">Template</td>    </tr>        <tr class="method-row expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.Template-insertFirst"></a>            <b>insertFirst</b>(&nbsp;<code>Mixed el</code>, <code>Object/Array values</code>, <span class="optional" title="Optional">[<code>Boolean returnElement</code>]</span>&nbsp;) : HTMLElement/Ext.Element            <div class="mdesc">                        <div class="short">Applies the supplied values to the template and inserts the new node(s) as the first child of el.</div>            <div class="long">                Applies the supplied values to the template and inserts the new node(s) as the first child of el.    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>el</code> : Mixed<div class="sub-desc">The context element</div></li><li><code>values</code> : Object/Array<div class="sub-desc">The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</div></li><li><code>returnElement</code> : Boolean<div class="sub-desc">(optional) true to return a Ext.Element (defaults to undefined)</div></li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>HTMLElement/Ext.Element</code><div class="sub-desc">The new node or Element</div></li>        </ul>    </div>                </div>                        </div>        </td>        <td class="msource">Template</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.Template-overwrite"></a>            <b>overwrite</b>(&nbsp;<code>Mixed el</code>, <code>Object/Array values</code>, <span class="optional" title="Optional">[<code>Boolean returnElement</code>]</span>&nbsp;) : HTMLElement/Ext.Element            <div class="mdesc">                        <div class="short">Applies the supplied values to the template and overwrites the content of el with the new node(s).</div>            <div class="long">                Applies the supplied values to the template and overwrites the content of el with the new node(s).    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>el</code> : Mixed<div class="sub-desc">The context element</div></li><li><code>values</code> : Object/Array<div class="sub-desc">The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</div></li><li><code>returnElement</code> : Boolean<div class="sub-desc">(optional) true to return a Ext.Element (defaults to undefined)</div></li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>HTMLElement/Ext.Element</code><div class="sub-desc">The new node or Element</div></li>        </ul>    </div>                </div>                        </div>        </td>        <td class="msource">Template</td>    </tr>        <tr class="method-row expandable">        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>        <td class="sig">        <a id="Ext.Template-set"></a>            <b>set</b>(&nbsp;<code>String html</code>, <span class="optional" title="Optional">[<code>Boolean compile</code>]</span>&nbsp;) : Ext.Template            <div class="mdesc">                        <div class="short">Sets the HTML used as the template and optionally compiles it.</div>            <div class="long">                Sets the HTML used as the template and optionally compiles it.    <div class="mdetail-params">        <strong>Parameters:</strong>        <ul><li><code>html</code> : String<div class="sub-desc"></div></li><li><code>compile</code> : Boolean<div class="sub-desc">(optional) True to compile the template (defaults to undefined)</div></li>        </ul>        <strong>Returns:</strong>        <ul>            <li><code>Ext.Template</code><div class="sub-desc">this</div></li>        </ul>    </div>                </div>                        </div>        </td>        <td class="msource">Template</td>    </tr>            </table>                <a id="Ext.Template-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 + -