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>
167 <!-- ============================== public properties ==================== -->
171 <a id="Roo.MasterTemplate-props"></a>
177 <table cellspacing="0" class="member-table">
178 <caption class="Empty">Public Properties - Has None</caption>
184 <!-- ============================== methods summary / details ======================== -->
187 <a id="Roo.MasterTemplate-methods"></a>
188 <!-- constructor?? -->
195 <!-- then dynamics first -->
202 <table cellspacing="0" class="member-table">
203 <caption>Public Methods</caption>
205 <th class="sig-header" colspan="2">Method</th>
206 <th class="msource-header">Defined By</th>
216 <tr class="method-row config-row-alt0 notInherited">
217 <td class="micon"><a class="exi" href="#expand"> </a></td>
221 <a id="Roo-method-MasterTemplate" name=".MasterTemplate"></a>
222 <div class="fixedFont">
223 <span class="attributes">new <B>Roo.</B></span><b class="itemname">MasterTemplate</b>
233 <div class="short">Create a new Roo.MasterTemplate</div>
240 Create a new Roo.MasterTemplate
263 <tr class="method-row config-row-alt1 expandable notInherited">
264 <td class="micon"><a class="exi" href="#expand"> </a></td>
268 <a id="Roo.MasterTemplate-method-from" name=".from"></a>
269 <div class="fixedFont">
270 <span class="attributes">Roo.MasterTemplate.</span><b class="itemname">from</b>
272 (<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>)
279 <div class="short">Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML.</div>
285 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');
292 <dl class="detailList">
293 <dt class="heading">Parameters:</dt>
296 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement</span> <b>el</b>
302 <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>
331 <tr class="method-row config-row-alt0 expandable notInherited">
332 <td class="micon"><a class="exi" href="#expand"> </a></td>
336 <a id="Roo.MasterTemplate-method-add" name=".add"></a>
337 <div class="fixedFont">
338 <span class="attributes"></span><b class="itemname">add</b>
340 (<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>)
355 <div class="short">Applies the passed values to a child template.</div>
361 Applies the passed values to a child template.
368 <dl class="detailList">
369 <dt class="heading">Parameters:</dt>
372 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>name</b>
375 <dd>(optional) The name or index of the child template</dd>
378 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>values</b>
381 <dd>The values to be applied to the template</dd>
389 <dl class="detailList">
390 <dt class="heading">Returns:</dt>
392 <dd><span class="fixedFont">MasterTemplate</span> this</dd>
414 <tr class="method-row config-row-alt1 expandable notInherited">
415 <td class="micon"><a class="exi" href="#expand"> </a></td>
419 <a id="Roo.MasterTemplate-method-addAll" name=".addAll"></a>
420 <div class="fixedFont">
421 <span class="attributes"></span><b class="itemname">addAll</b>
430 <div class="short">Alias for fill().</div>
465 <tr class="method-row config-row-alt0 expandable">
466 <td class="micon"><a class="exi" href="#expand"> </a></td>
470 <a id="Roo.Template-method-append" name=".append"></a>
471 <div class="fixedFont">
472 <span class="attributes"></span><b class="itemname">append</b>
474 (<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>)
480 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
489 <div class="short">Applies the supplied values to the template and appends the new node(s) to el.</div>
495 Applies the supplied values to the template and appends the new node(s) to el.
502 <dl class="detailList">
503 <dt class="heading">Parameters:</dt>
506 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
509 <dd>The context element</dd>
512 <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>
515 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
518 <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>
521 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
529 <dl class="detailList">
530 <dt class="heading">Returns:</dt>
532 <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>
548 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
554 <tr class="method-row config-row-alt1 expandable">
555 <td class="micon"><a class="exi" href="#expand"> </a></td>
559 <a id="Roo.Template-method-apply" name=".apply"></a>
560 <div class="fixedFont">
561 <span class="attributes"></span><b class="itemname">apply</b>
570 <div class="short">Alias for {<b>link</b> <b>applyTemplate</b>}</div>
576 Alias for {<b>link</b> <b>applyTemplate</b>}
599 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
605 <tr class="method-row config-row-alt0 expandable">
606 <td class="micon"><a class="exi" href="#expand"> </a></td>
610 <a id="Roo.Template-method-applyTemplate" name=".applyTemplate"></a>
611 <div class="fixedFont">
612 <span class="attributes"></span><b class="itemname">applyTemplate</b>
614 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>values</i></B>)
620 <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
629 <div class="short">Returns an HTML fragment of this template with the specified values applied.</div>
635 Returns an HTML fragment of this template with the specified values applied.
642 <dl class="detailList">
643 <dt class="heading">Parameters:</dt>
646 <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>
649 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
657 <dl class="detailList">
658 <dt class="heading">Returns:</dt>
660 <dd><span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> The HTML fragment</dd>
676 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
682 <tr class="method-row config-row-alt1 expandable">
683 <td class="micon"><a class="exi" href="#expand"> </a></td>
687 <a id="Roo.Template-method-compile" name=".compile"></a>
688 <div class="fixedFont">
689 <span class="attributes"></span><b class="itemname">compile</b>
697 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
706 <div class="short">Compiles the template into an internal function, eliminating the RegEx overhead.</div>
712 Compiles the template into an internal function, eliminating the RegEx overhead.
723 <dl class="detailList">
724 <dt class="heading">Returns:</dt>
726 <dd><span class="fixedFont"><a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a></span> this</dd>
742 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
748 <tr class="method-row config-row-alt0 expandable notInherited">
749 <td class="micon"><a class="exi" href="#expand"> </a></td>
753 <a id="Roo.MasterTemplate-method-fill" name=".fill"></a>
754 <div class="fixedFont">
755 <span class="attributes"></span><b class="itemname">fill</b>
757 (<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>)
772 <div class="short">Applies all the passed values to a child template.</div>
778 Applies all the passed values to a child template.
785 <dl class="detailList">
786 <dt class="heading">Parameters:</dt>
789 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>name</b>
792 <dd>(optional) The name or index of the child template</dd>
795 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>values</b>
798 <dd>The values to be applied to the template, this should be an array of objects.</dd>
801 <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>
804 <dd>(optional) True to reset the template first</dd>
812 <dl class="detailList">
813 <dt class="heading">Returns:</dt>
815 <dd><span class="fixedFont">MasterTemplate</span> this</dd>
837 <tr class="method-row config-row-alt1 expandable">
838 <td class="micon"><a class="exi" href="#expand"> </a></td>
842 <a id="Roo.Template-method-insertAfter" name=".insertAfter"></a>
843 <div class="fixedFont">
844 <span class="attributes"></span><b class="itemname">insertAfter</b>
846 (<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>)
852 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
861 <div class="short">Applies the supplied values to the template and inserts the new node(s) after el.</div>
867 Applies the supplied values to the template and inserts the new node(s) after el.
874 <dl class="detailList">
875 <dt class="heading">Parameters:</dt>
878 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
881 <dd>The context element</dd>
884 <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>
887 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
890 <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>
893 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
901 <dl class="detailList">
902 <dt class="heading">Returns:</dt>
904 <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>
920 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
926 <tr class="method-row config-row-alt0 expandable">
927 <td class="micon"><a class="exi" href="#expand"> </a></td>
931 <a id="Roo.Template-method-insertBefore" name=".insertBefore"></a>
932 <div class="fixedFont">
933 <span class="attributes"></span><b class="itemname">insertBefore</b>
935 (<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>)
941 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
950 <div class="short">Applies the supplied values to the template and inserts the new node(s) before el.</div>
956 Applies the supplied values to the template and inserts the new node(s) before el.
963 <dl class="detailList">
964 <dt class="heading">Parameters:</dt>
967 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
970 <dd>The context element</dd>
973 <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>
976 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
979 <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>
982 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
990 <dl class="detailList">
991 <dt class="heading">Returns:</dt>
993 <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>
1007 <td class="msource">
1009 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1015 <tr class="method-row config-row-alt1 expandable">
1016 <td class="micon"><a class="exi" href="#expand"> </a></td>
1020 <a id="Roo.Template-method-insertFirst" name=".insertFirst"></a>
1021 <div class="fixedFont">
1022 <span class="attributes"></span><b class="itemname">insertFirst</b>
1024 (<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>)
1030 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
1039 <div class="short">Applies the supplied values to the template and inserts the new node(s) as the first child of el.</div>
1045 Applies the supplied values to the template and inserts the new node(s) as the first child of el.
1052 <dl class="detailList">
1053 <dt class="heading">Parameters:</dt>
1056 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
1059 <dd>The context element</dd>
1062 <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>
1065 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
1068 <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>
1071 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
1079 <dl class="detailList">
1080 <dt class="heading">Returns:</dt>
1082 <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>
1096 <td class="msource">
1098 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1104 <tr class="method-row config-row-alt0 expandable">
1105 <td class="micon"><a class="exi" href="#expand"> </a></td>
1109 <a id="Roo.Template-method-overwrite" name=".overwrite"></a>
1110 <div class="fixedFont">
1111 <span class="attributes"></span><b class="itemname">overwrite</b>
1113 (<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>)
1119 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
1128 <div class="short">Applies the supplied values to the template and overwrites the content of el with the new node(s).</div>
1134 Applies the supplied values to the template and overwrites the content of el with the new node(s).
1141 <dl class="detailList">
1142 <dt class="heading">Parameters:</dt>
1145 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
1148 <dd>The context element</dd>
1151 <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>
1154 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
1157 <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>
1160 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
1168 <dl class="detailList">
1169 <dt class="heading">Returns:</dt>
1171 <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>
1185 <td class="msource">
1187 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1193 <tr class="method-row config-row-alt1 expandable notInherited">
1194 <td class="micon"><a class="exi" href="#expand"> </a></td>
1198 <a id="Roo.MasterTemplate-method-reset" name=".reset"></a>
1199 <div class="fixedFont">
1200 <span class="attributes"></span><b class="itemname">reset</b>
1217 <div class="short">Resets the template for reuse</div>
1223 Resets the template for reuse
1234 <dl class="detailList">
1235 <dt class="heading">Returns:</dt>
1237 <dd><span class="fixedFont">MasterTemplate</span> this</dd>
1251 <td class="msource">
1259 <tr class="method-row config-row-alt0 expandable">
1260 <td class="micon"><a class="exi" href="#expand"> </a></td>
1264 <a id="Roo.Template-method-set" name=".set"></a>
1265 <div class="fixedFont">
1266 <span class="attributes"></span><b class="itemname">set</b>
1268 (<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>)
1274 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1283 <div class="short">Sets the HTML used as the template and optionally compiles it.</div>
1289 Sets the HTML used as the template and optionally compiles it.
1296 <dl class="detailList">
1297 <dt class="heading">Parameters:</dt>
1300 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>html</b>
1306 <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>
1309 <dd>(optional) True to compile the template (defaults to undefined)</dd>
1317 <dl class="detailList">
1318 <dt class="heading">Returns:</dt>
1320 <dd><span class="fixedFont"><a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a></span> this</dd>
1334 <td class="msource">
1336 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1345 <!-- ============================== events summary / details ======================== -->
1348 <a id="Roo.MasterTemplate-events"></a>
1354 <table cellspacing="0" class="member-table">
1355 <caption class="Empty">Events - Has None</caption>
1366 <!-- ============================== footer ================================= -->
1367 <div class="fineprint" style="clear:both">
1369 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Thu Feb 10 2011 17:59:19 GMT+0800 (HKT)
1371 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>