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>
144 The HTML fragment or an array of fragments to join("") or multiple arguments to join("")
154 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
160 <tr class="config-row expandable config-row-alt1">
161 <td class="micon"><a class="exi" href="#expand"> </a></td>
164 <a id="Roo.Template-cfg-url" name=".url"></a>
165 <div class="fixedFont">
166 <b class="itemname">url</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
172 <div class="short">The Url to load the template from.</div>
177 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...
187 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
203 <!-- ============================== public properties ==================== -->
207 <a id="Roo.MasterTemplate-props"></a>
213 <table cellspacing="0" class="member-table">
214 <caption class="Empty">Public Properties - Has None</caption>
220 <!-- ============================== methods summary / details ======================== -->
223 <a id="Roo.MasterTemplate-methods"></a>
224 <!-- constructor?? -->
231 <!-- then dynamics first -->
238 <table cellspacing="0" class="member-table">
239 <caption>Public Methods</caption>
241 <th class="sig-header" colspan="2">Method</th>
242 <th class="msource-header">Defined By</th>
252 <tr class="method-row config-row-alt0 notInherited">
253 <td class="micon"><a class="exi" href="#expand"> </a></td>
257 <a id="Roo-method-MasterTemplate" name=".MasterTemplate"></a>
258 <div class="fixedFont">
259 <span class="attributes">new <B>Roo.</B></span><b class="itemname">MasterTemplate</b>
269 <div class="short">Create a new Roo.MasterTemplate</div>
276 Create a new Roo.MasterTemplate
299 <tr class="method-row config-row-alt1 expandable notInherited">
300 <td class="micon"><a class="exi" href="#expand"> </a></td>
304 <a id="Roo.MasterTemplate-method-from" name=".from"></a>
305 <div class="fixedFont">
306 <span class="attributes">Roo.MasterTemplate.</span><b class="itemname">from</b>
308 (<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>)
315 <div class="short">Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML.</div>
321 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');
328 <dl class="detailList">
329 <dt class="heading">Parameters:</dt>
332 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement</span> <b>el</b>
338 <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>
367 <tr class="method-row config-row-alt0 expandable notInherited">
368 <td class="micon"><a class="exi" href="#expand"> </a></td>
372 <a id="Roo.MasterTemplate-method-add" name=".add"></a>
373 <div class="fixedFont">
374 <span class="attributes"></span><b class="itemname">add</b>
376 (<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>)
391 <div class="short">Applies the passed values to a child template.</div>
397 Applies the passed values to a child template.
404 <dl class="detailList">
405 <dt class="heading">Parameters:</dt>
408 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>name</b>
411 <dd>(optional) The name or index of the child template</dd>
414 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>values</b>
417 <dd>The values to be applied to the template</dd>
425 <dl class="detailList">
426 <dt class="heading">Returns:</dt>
428 <dd><span class="fixedFont">MasterTemplate</span> this</dd>
450 <tr class="method-row config-row-alt1 expandable notInherited">
451 <td class="micon"><a class="exi" href="#expand"> </a></td>
455 <a id="Roo.MasterTemplate-method-addAll" name=".addAll"></a>
456 <div class="fixedFont">
457 <span class="attributes"></span><b class="itemname">addAll</b>
466 <div class="short">Alias for fill().</div>
501 <tr class="method-row config-row-alt0 expandable">
502 <td class="micon"><a class="exi" href="#expand"> </a></td>
506 <a id="Roo.Template-method-append" name=".append"></a>
507 <div class="fixedFont">
508 <span class="attributes"></span><b class="itemname">append</b>
510 (<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>)
516 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
525 <div class="short">Applies the supplied values to the template and appends the new node(s) to el.</div>
531 Applies the supplied values to the template and appends the new node(s) to el.
538 <dl class="detailList">
539 <dt class="heading">Parameters:</dt>
542 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
545 <dd>The context element</dd>
548 <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>
551 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
554 <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>
557 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
565 <dl class="detailList">
566 <dt class="heading">Returns:</dt>
568 <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>
584 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
590 <tr class="method-row config-row-alt1 expandable">
591 <td class="micon"><a class="exi" href="#expand"> </a></td>
595 <a id="Roo.Template-method-apply" name=".apply"></a>
596 <div class="fixedFont">
597 <span class="attributes"></span><b class="itemname">apply</b>
606 <div class="short">Alias for {<b>link</b> <b>applyTemplate</b>}</div>
612 Alias for {<b>link</b> <b>applyTemplate</b>}
635 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
641 <tr class="method-row config-row-alt0 expandable">
642 <td class="micon"><a class="exi" href="#expand"> </a></td>
646 <a id="Roo.Template-method-applyTemplate" name=".applyTemplate"></a>
647 <div class="fixedFont">
648 <span class="attributes"></span><b class="itemname">applyTemplate</b>
650 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>values</i></B>)
656 <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
665 <div class="short">Returns an HTML fragment of this template with the specified values applied.</div>
671 Returns an HTML fragment of this template with the specified values applied.
678 <dl class="detailList">
679 <dt class="heading">Parameters:</dt>
682 <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>
685 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
693 <dl class="detailList">
694 <dt class="heading">Returns:</dt>
696 <dd><span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> The HTML fragment</dd>
712 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
718 <tr class="method-row config-row-alt1 expandable">
719 <td class="micon"><a class="exi" href="#expand"> </a></td>
723 <a id="Roo.Template-method-compile" name=".compile"></a>
724 <div class="fixedFont">
725 <span class="attributes"></span><b class="itemname">compile</b>
733 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
742 <div class="short">Compiles the template into an internal function, eliminating the RegEx overhead.</div>
748 Compiles the template into an internal function, eliminating the RegEx overhead.
759 <dl class="detailList">
760 <dt class="heading">Returns:</dt>
762 <dd><span class="fixedFont"><a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a></span> this</dd>
778 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
784 <tr class="method-row config-row-alt0 expandable notInherited">
785 <td class="micon"><a class="exi" href="#expand"> </a></td>
789 <a id="Roo.MasterTemplate-method-fill" name=".fill"></a>
790 <div class="fixedFont">
791 <span class="attributes"></span><b class="itemname">fill</b>
793 (<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>)
808 <div class="short">Applies all the passed values to a child template.</div>
814 Applies all the passed values to a child template.
821 <dl class="detailList">
822 <dt class="heading">Parameters:</dt>
825 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>name</b>
828 <dd>(optional) The name or index of the child template</dd>
831 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>values</b>
834 <dd>The values to be applied to the template, this should be an array of objects.</dd>
837 <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>
840 <dd>(optional) True to reset the template first</dd>
848 <dl class="detailList">
849 <dt class="heading">Returns:</dt>
851 <dd><span class="fixedFont">MasterTemplate</span> this</dd>
873 <tr class="method-row config-row-alt1 expandable">
874 <td class="micon"><a class="exi" href="#expand"> </a></td>
878 <a id="Roo.Template-method-insertAfter" name=".insertAfter"></a>
879 <div class="fixedFont">
880 <span class="attributes"></span><b class="itemname">insertAfter</b>
882 (<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>)
888 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
897 <div class="short">Applies the supplied values to the template and inserts the new node(s) after el.</div>
903 Applies the supplied values to the template and inserts the new node(s) after el.
910 <dl class="detailList">
911 <dt class="heading">Parameters:</dt>
914 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
917 <dd>The context element</dd>
920 <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>
923 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
926 <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>
929 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
937 <dl class="detailList">
938 <dt class="heading">Returns:</dt>
940 <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>
956 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
962 <tr class="method-row config-row-alt0 expandable">
963 <td class="micon"><a class="exi" href="#expand"> </a></td>
967 <a id="Roo.Template-method-insertBefore" name=".insertBefore"></a>
968 <div class="fixedFont">
969 <span class="attributes"></span><b class="itemname">insertBefore</b>
971 (<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>)
977 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
986 <div class="short">Applies the supplied values to the template and inserts the new node(s) before el.</div>
992 Applies the supplied values to the template and inserts the new node(s) before el.
999 <dl class="detailList">
1000 <dt class="heading">Parameters:</dt>
1003 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
1006 <dd>The context element</dd>
1009 <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>
1012 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
1015 <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>
1018 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
1026 <dl class="detailList">
1027 <dt class="heading">Returns:</dt>
1029 <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>
1043 <td class="msource">
1045 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1051 <tr class="method-row config-row-alt1 expandable">
1052 <td class="micon"><a class="exi" href="#expand"> </a></td>
1056 <a id="Roo.Template-method-insertFirst" name=".insertFirst"></a>
1057 <div class="fixedFont">
1058 <span class="attributes"></span><b class="itemname">insertFirst</b>
1060 (<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>)
1066 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
1075 <div class="short">Applies the supplied values to the template and inserts the new node(s) as the first child of el.</div>
1081 Applies the supplied values to the template and inserts the new node(s) as the first child of el.
1088 <dl class="detailList">
1089 <dt class="heading">Parameters:</dt>
1092 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
1095 <dd>The context element</dd>
1098 <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>
1101 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
1104 <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>
1107 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
1115 <dl class="detailList">
1116 <dt class="heading">Returns:</dt>
1118 <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>
1132 <td class="msource">
1134 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1140 <tr class="method-row config-row-alt0 expandable">
1141 <td class="micon"><a class="exi" href="#expand"> </a></td>
1145 <a id="Roo.Template-method-overwrite" name=".overwrite"></a>
1146 <div class="fixedFont">
1147 <span class="attributes"></span><b class="itemname">overwrite</b>
1149 (<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>)
1155 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
1164 <div class="short">Applies the supplied values to the template and overwrites the content of el with the new node(s).</div>
1170 Applies the supplied values to the template and overwrites the content of el with the new node(s).
1177 <dl class="detailList">
1178 <dt class="heading">Parameters:</dt>
1181 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
1184 <dd>The context element</dd>
1187 <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>
1190 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
1193 <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>
1196 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
1204 <dl class="detailList">
1205 <dt class="heading">Returns:</dt>
1207 <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>
1221 <td class="msource">
1223 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1229 <tr class="method-row config-row-alt1 expandable notInherited">
1230 <td class="micon"><a class="exi" href="#expand"> </a></td>
1234 <a id="Roo.MasterTemplate-method-reset" name=".reset"></a>
1235 <div class="fixedFont">
1236 <span class="attributes"></span><b class="itemname">reset</b>
1253 <div class="short">Resets the template for reuse</div>
1259 Resets the template for reuse
1270 <dl class="detailList">
1271 <dt class="heading">Returns:</dt>
1273 <dd><span class="fixedFont">MasterTemplate</span> this</dd>
1287 <td class="msource">
1295 <tr class="method-row config-row-alt0 expandable">
1296 <td class="micon"><a class="exi" href="#expand"> </a></td>
1300 <a id="Roo.Template-method-set" name=".set"></a>
1301 <div class="fixedFont">
1302 <span class="attributes"></span><b class="itemname">set</b>
1304 (<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>)
1310 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1319 <div class="short">Sets the HTML used as the template and optionally compiles it.</div>
1325 Sets the HTML used as the template and optionally compiles it.
1332 <dl class="detailList">
1333 <dt class="heading">Parameters:</dt>
1336 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>html</b>
1342 <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>
1345 <dd>(optional) True to compile the template (defaults to undefined)</dd>
1353 <dl class="detailList">
1354 <dt class="heading">Returns:</dt>
1356 <dd><span class="fixedFont"><a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a></span> this</dd>
1370 <td class="msource">
1372 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1381 <!-- ============================== events summary / details ======================== -->
1384 <a id="Roo.MasterTemplate-events"></a>
1390 <table cellspacing="0" class="member-table">
1391 <caption class="Empty">Events - Has None</caption>
1402 <!-- ============================== footer ================================= -->
1403 <div class="fineprint" style="clear:both">
1405 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Mon Nov 06 2017 11:00:32 GMT+0800 (HKT)
1407 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>