1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.MasterTemplate</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.MasterTemplate-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.MasterTemplate-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.MasterTemplate-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.MasterTemplate-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.MasterTemplate
52 <!-- ============================== class title / details ============================ -->
55 <h1 class="classTitle">
57 Class Roo.MasterTemplate
60 <table cellspacing="0" class="class-summary-table">
62 <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
64 <tr><td class="label">Defined In:</td><td class="hd-info">
66 <a href="./src/Roo_MasterTemplate.js.html">Roo/MasterTemplate.js</a>.
69 <tr><td class="label">Class:</td><td class="hd-info">MasterTemplate</td></tr>
74 <tr><td class="label">Extends:</td><td class="hd-info">
75 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
83 <!-- ============================== class summary ========================== -->
84 <div class="description">
85 Provides a template that can have child templates. The syntax is:<br/><pre><code><br/>var t = new Roo.MasterTemplate(<br/> '<select name="{name}">',<br/> '<tpl name="options"><option value="{value:trim}">{text:ellipsis(10)}</option></tpl>',<br/> '</select>'<br/>);<br/>t.add('options', {value: 'foo', text: 'bar'});<br/>// or you can add multiple child elements in one shot<br/>t.addAll('options', [<br/> {value: 'foo', text: 'bar'},<br/> {value: 'foo2', text: 'bar2'},<br/> {value: 'foo3', text: 'bar3'}<br/>]);<br/>// then append, applying the master template values<br/>t.append('my-form', {name: 'my-select'});<br/></code></pre><br/>A name attribute for the child template is not required if you have only one child<br/>template or you want to refer to them by index.
89 <!-- ============================== Class comment block... ========================== -->
91 <div class="comments">
92 <b>Class Comments / Notes</B> =>
93 <u onclick="parent.CommentDialog.showCommentId = 'Roo.MasterTemplate';">[Add Your comment/notes about this class]</u>
95 <iframe frameborder="0" id="comments-Roo" style="border: none;width:100%;"
96 src="/blog.php/GtkDjsComments/Roo.MasterTemplate.html"></iframe>
101 <!-- ============================== config options ========================== -->
106 <div class="hr"></div>
107 <a id="Roo.MasterTemplate-configs"></a>
113 <table cellspacing="0" class="member-table">
114 <caption>Config Options (Usually are also Properties)</caption>
118 <th class="sig-header" colspan="2">Options</th>
120 <th class="msource-header">Defined By</th>
127 <tr class="config-row expandable config-row-alt0">
128 <td class="micon"><a class="exi" href="#expand"> </a></td>
131 <a id="Roo.Template-cfg-html" name=".html"></a>
132 <div class="fixedFont">
133 <b class="itemname">html</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
139 <div class="short">The HTML fragment or an array of fragments to join("") or multiple arguments to join("")</div>
143 <div class="long">The HTML fragment or an array of fragments to join("") or multiple arguments to join("")</div>
151 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
157 <tr class="config-row expandable config-row-alt1">
158 <td class="micon"><a class="exi" href="#expand"> </a></td>
161 <a id="Roo.Template-cfg-url" name=".url"></a>
162 <div class="fixedFont">
163 <b class="itemname">url</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
169 <div class="short">The Url to load the template from.</div>
173 <div class="long">The Url to load the template from. beware if you are loading from a url, the data may not be ready if you use it instantly..<br/> it should be fixed so that template is observable...</div>
181 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
197 <!-- ============================== public properties ==================== -->
201 <a id="Roo.MasterTemplate-props"></a>
207 <table cellspacing="0" class="member-table">
208 <caption class="Empty">Public Properties - Has None</caption>
214 <!-- ============================== methods summary / details ======================== -->
217 <a id="Roo.MasterTemplate-methods"></a>
218 <!-- constructor?? -->
225 <!-- then dynamics first -->
232 <table cellspacing="0" class="member-table">
233 <caption>Public Methods</caption>
235 <th class="sig-header" colspan="2">Method</th>
236 <th class="msource-header">Defined By</th>
246 <tr class="method-row config-row-alt0 notInherited">
247 <td class="micon"><a class="exi" href="#expand"> </a></td>
251 <a id="Roo-method-MasterTemplate" name=".MasterTemplate"></a>
252 <div class="fixedFont">
253 <span class="attributes">new <B>Roo.</B></span><b class="itemname">MasterTemplate</b>
263 <div class="short">Create a new Roo.MasterTemplate</div>
270 Create a new Roo.MasterTemplate
293 <tr class="method-row config-row-alt1 expandable notInherited">
294 <td class="micon"><a class="exi" href="#expand"> </a></td>
298 <a id="Roo.MasterTemplate-method-from" name=".from"></a>
299 <div class="fixedFont">
300 <span class="attributes">Roo.MasterTemplate.</span><b class="itemname">from</b>
302 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement <B><i>el</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
309 <div class="short">Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML.</div>
315 Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML. e.g.<br/>var tpl = Roo.MasterTemplate.from('element-id');
322 <dl class="detailList">
323 <dt class="heading">Parameters:</dt>
326 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement</span> <b>el</b>
332 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>config</b>
361 <tr class="method-row config-row-alt0 expandable notInherited">
362 <td class="micon"><a class="exi" href="#expand"> </a></td>
366 <a id="Roo.MasterTemplate-method-add" name=".add"></a>
367 <div class="fixedFont">
368 <span class="attributes"></span><b class="itemname">add</b>
370 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number <B><i>name</i></B>, <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object <B><i>values</i></B>)
385 <div class="short">Applies the passed values to a child template.</div>
391 Applies the passed values to a child template.
398 <dl class="detailList">
399 <dt class="heading">Parameters:</dt>
402 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>name</b>
405 <dd>(optional) The name or index of the child template</dd>
408 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>values</b>
411 <dd>The values to be applied to the template</dd>
419 <dl class="detailList">
420 <dt class="heading">Returns:</dt>
422 <dd><span class="fixedFont">MasterTemplate</span> this</dd>
444 <tr class="method-row config-row-alt1 expandable notInherited">
445 <td class="micon"><a class="exi" href="#expand"> </a></td>
449 <a id="Roo.MasterTemplate-method-addAll" name=".addAll"></a>
450 <div class="fixedFont">
451 <span class="attributes"></span><b class="itemname">addAll</b>
460 <div class="short">Alias for fill().</div>
495 <tr class="method-row config-row-alt0 expandable">
496 <td class="micon"><a class="exi" href="#expand"> </a></td>
500 <a id="Roo.Template-method-append" name=".append"></a>
501 <div class="fixedFont">
502 <span class="attributes"></span><b class="itemname">append</b>
504 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element <B><i>el</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>values</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>returnElement</i></B>)
510 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
519 <div class="short">Applies the supplied values to the template and appends the new node(s) to el.</div>
525 Applies the supplied values to the template and appends the new node(s) to el.
532 <dl class="detailList">
533 <dt class="heading">Parameters:</dt>
536 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
539 <dd>The context element</dd>
542 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>values</b>
545 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
548 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>returnElement</b>
551 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
559 <dl class="detailList">
560 <dt class="heading">Returns:</dt>
562 <dd><span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element</span> The new node or Element</dd>
578 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
584 <tr class="method-row config-row-alt1 expandable">
585 <td class="micon"><a class="exi" href="#expand"> </a></td>
589 <a id="Roo.Template-method-apply" name=".apply"></a>
590 <div class="fixedFont">
591 <span class="attributes"></span><b class="itemname">apply</b>
600 <div class="short">Alias for {<b>link</b> <b>applyTemplate</b>}</div>
606 Alias for {<b>link</b> <b>applyTemplate</b>}
629 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
635 <tr class="method-row config-row-alt0 expandable">
636 <td class="micon"><a class="exi" href="#expand"> </a></td>
640 <a id="Roo.Template-method-applyTemplate" name=".applyTemplate"></a>
641 <div class="fixedFont">
642 <span class="attributes"></span><b class="itemname">applyTemplate</b>
644 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>values</i></B>)
650 <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
659 <div class="short">Returns an HTML fragment of this template with the specified values applied.</div>
665 Returns an HTML fragment of this template with the specified values applied.
672 <dl class="detailList">
673 <dt class="heading">Parameters:</dt>
676 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>values</b>
679 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
687 <dl class="detailList">
688 <dt class="heading">Returns:</dt>
690 <dd><span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> The HTML fragment</dd>
706 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
712 <tr class="method-row config-row-alt1 expandable">
713 <td class="micon"><a class="exi" href="#expand"> </a></td>
717 <a id="Roo.Template-method-compile" name=".compile"></a>
718 <div class="fixedFont">
719 <span class="attributes"></span><b class="itemname">compile</b>
727 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
736 <div class="short">Compiles the template into an internal function, eliminating the RegEx overhead.</div>
742 Compiles the template into an internal function, eliminating the RegEx overhead.
753 <dl class="detailList">
754 <dt class="heading">Returns:</dt>
756 <dd><span class="fixedFont"><a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a></span> this</dd>
772 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
778 <tr class="method-row config-row-alt0 expandable notInherited">
779 <td class="micon"><a class="exi" href="#expand"> </a></td>
783 <a id="Roo.MasterTemplate-method-fill" name=".fill"></a>
784 <div class="fixedFont">
785 <span class="attributes"></span><b class="itemname">fill</b>
787 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number <B><i>name</i></B>, <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a> <B><i>values</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>reset</i></B>)
802 <div class="short">Applies all the passed values to a child template.</div>
808 Applies all the passed values to a child template.
815 <dl class="detailList">
816 <dt class="heading">Parameters:</dt>
819 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>name</b>
822 <dd>(optional) The name or index of the child template</dd>
825 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>values</b>
828 <dd>The values to be applied to the template, this should be an array of objects.</dd>
831 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>reset</b>
834 <dd>(optional) True to reset the template first</dd>
842 <dl class="detailList">
843 <dt class="heading">Returns:</dt>
845 <dd><span class="fixedFont">MasterTemplate</span> this</dd>
867 <tr class="method-row config-row-alt1 expandable">
868 <td class="micon"><a class="exi" href="#expand"> </a></td>
872 <a id="Roo.Template-method-insertAfter" name=".insertAfter"></a>
873 <div class="fixedFont">
874 <span class="attributes"></span><b class="itemname">insertAfter</b>
876 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element <B><i>el</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>values</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>returnElement</i></B>)
882 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
891 <div class="short">Applies the supplied values to the template and inserts the new node(s) after el.</div>
897 Applies the supplied values to the template and inserts the new node(s) after el.
904 <dl class="detailList">
905 <dt class="heading">Parameters:</dt>
908 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
911 <dd>The context element</dd>
914 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>values</b>
917 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
920 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>returnElement</b>
923 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
931 <dl class="detailList">
932 <dt class="heading">Returns:</dt>
934 <dd><span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element</span> The new node or Element</dd>
950 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
956 <tr class="method-row config-row-alt0 expandable">
957 <td class="micon"><a class="exi" href="#expand"> </a></td>
961 <a id="Roo.Template-method-insertBefore" name=".insertBefore"></a>
962 <div class="fixedFont">
963 <span class="attributes"></span><b class="itemname">insertBefore</b>
965 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element <B><i>el</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>values</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>returnElement</i></B>)
971 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
980 <div class="short">Applies the supplied values to the template and inserts the new node(s) before el.</div>
986 Applies the supplied values to the template and inserts the new node(s) before el.
993 <dl class="detailList">
994 <dt class="heading">Parameters:</dt>
997 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
1000 <dd>The context element</dd>
1003 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>values</b>
1006 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
1009 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>returnElement</b>
1012 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
1020 <dl class="detailList">
1021 <dt class="heading">Returns:</dt>
1023 <dd><span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element</span> The new node or Element</dd>
1037 <td class="msource">
1039 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1045 <tr class="method-row config-row-alt1 expandable">
1046 <td class="micon"><a class="exi" href="#expand"> </a></td>
1050 <a id="Roo.Template-method-insertFirst" name=".insertFirst"></a>
1051 <div class="fixedFont">
1052 <span class="attributes"></span><b class="itemname">insertFirst</b>
1054 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element <B><i>el</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>values</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>returnElement</i></B>)
1060 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
1069 <div class="short">Applies the supplied values to the template and inserts the new node(s) as the first child of el.</div>
1075 Applies the supplied values to the template and inserts the new node(s) as the first child of el.
1082 <dl class="detailList">
1083 <dt class="heading">Parameters:</dt>
1086 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
1089 <dd>The context element</dd>
1092 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>values</b>
1095 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
1098 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>returnElement</b>
1101 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
1109 <dl class="detailList">
1110 <dt class="heading">Returns:</dt>
1112 <dd><span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element</span> The new node or Element</dd>
1126 <td class="msource">
1128 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1134 <tr class="method-row config-row-alt0 expandable">
1135 <td class="micon"><a class="exi" href="#expand"> </a></td>
1139 <a id="Roo.Template-method-overwrite" name=".overwrite"></a>
1140 <div class="fixedFont">
1141 <span class="attributes"></span><b class="itemname">overwrite</b>
1143 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element <B><i>el</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>values</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>returnElement</i></B>)
1149 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
1158 <div class="short">Applies the supplied values to the template and overwrites the content of el with the new node(s).</div>
1164 Applies the supplied values to the template and overwrites the content of el with the new node(s).
1171 <dl class="detailList">
1172 <dt class="heading">Parameters:</dt>
1175 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
1178 <dd>The context element</dd>
1181 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>values</b>
1184 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
1187 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>returnElement</b>
1190 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
1198 <dl class="detailList">
1199 <dt class="heading">Returns:</dt>
1201 <dd><span class="fixedFont"><a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element</span> The new node or Element</dd>
1215 <td class="msource">
1217 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1223 <tr class="method-row config-row-alt1 expandable notInherited">
1224 <td class="micon"><a class="exi" href="#expand"> </a></td>
1228 <a id="Roo.MasterTemplate-method-reset" name=".reset"></a>
1229 <div class="fixedFont">
1230 <span class="attributes"></span><b class="itemname">reset</b>
1247 <div class="short">Resets the template for reuse</div>
1253 Resets the template for reuse
1264 <dl class="detailList">
1265 <dt class="heading">Returns:</dt>
1267 <dd><span class="fixedFont">MasterTemplate</span> this</dd>
1281 <td class="msource">
1289 <tr class="method-row config-row-alt0 expandable">
1290 <td class="micon"><a class="exi" href="#expand"> </a></td>
1294 <a id="Roo.Template-method-set" name=".set"></a>
1295 <div class="fixedFont">
1296 <span class="attributes"></span><b class="itemname">set</b>
1298 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>html</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a> <B><i>compile</i></B>)
1304 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1313 <div class="short">Sets the HTML used as the template and optionally compiles it.</div>
1319 Sets the HTML used as the template and optionally compiles it.
1326 <dl class="detailList">
1327 <dt class="heading">Parameters:</dt>
1330 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>html</b>
1336 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> <b>compile</b>
1339 <dd>(optional) True to compile the template (defaults to undefined)</dd>
1347 <dl class="detailList">
1348 <dt class="heading">Returns:</dt>
1350 <dd><span class="fixedFont"><a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a></span> this</dd>
1364 <td class="msource">
1366 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1375 <!-- ============================== events summary / details ======================== -->
1378 <a id="Roo.MasterTemplate-events"></a>
1384 <table cellspacing="0" class="member-table">
1385 <caption class="Empty">Events - Has None</caption>
1396 <!-- ============================== footer ================================= -->
1397 <div class="fineprint" style="clear:both">
1399 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Thu Apr 24 2014 16:54:30 GMT+0800 (HKT)
1401 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>