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>
111 <table cellspacing="0" class="member-table">
112 <caption class="Empty">Config Options - Has None</caption>
126 <!-- ============================== public properties ==================== -->
130 <a id="Roo.MasterTemplate-props"></a>
136 <table cellspacing="0" class="member-table">
137 <caption class="Empty">Public Properties - Has None</caption>
143 <!-- ============================== methods summary / details ======================== -->
146 <a id="Roo.MasterTemplate-methods"></a>
147 <!-- constructor?? -->
154 <!-- then dynamics first -->
161 <table cellspacing="0" class="member-table">
162 <caption>Public Methods</caption>
164 <th class="sig-header" colspan="2">Method</th>
165 <th class="msource-header">Defined By</th>
175 <tr class="method-row config-row-alt0 notInherited">
176 <td class="micon"><a class="exi" href="#expand"> </a></td>
180 <a id="Roo-method-MasterTemplate" name=".MasterTemplate"></a>
181 <div class="fixedFont">
182 <span class="attributes">new <B>Roo.</B></span><b class="itemname">MasterTemplate</b>
192 <div class="short">Create a new Roo.MasterTemplate</div>
199 Create a new Roo.MasterTemplate
222 <tr class="method-row config-row-alt1 expandable notInherited">
223 <td class="micon"><a class="exi" href="#expand"> </a></td>
227 <a id="Roo.MasterTemplate-method-from" name=".from"></a>
228 <div class="fixedFont">
229 <span class="attributes">Roo.MasterTemplate.</span><b class="itemname">from</b>
231 (<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>)
238 <div class="short">Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML.</div>
244 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');
251 <dl class="detailList">
252 <dt class="heading">Parameters:</dt>
255 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement</span> <b>el</b>
261 <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>
290 <tr class="method-row config-row-alt0 expandable notInherited">
291 <td class="micon"><a class="exi" href="#expand"> </a></td>
295 <a id="Roo.MasterTemplate-method-add" name=".add"></a>
296 <div class="fixedFont">
297 <span class="attributes"></span><b class="itemname">add</b>
299 (<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>)
314 <div class="short">Applies the passed values to a child template.</div>
320 Applies the passed values to a child template.
327 <dl class="detailList">
328 <dt class="heading">Parameters:</dt>
331 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>name</b>
334 <dd>(optional) The name or index of the child template</dd>
337 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span> <b>values</b>
340 <dd>The values to be applied to the template</dd>
348 <dl class="detailList">
349 <dt class="heading">Returns:</dt>
351 <dd><span class="fixedFont">MasterTemplate</span> this</dd>
373 <tr class="method-row config-row-alt1 expandable notInherited">
374 <td class="micon"><a class="exi" href="#expand"> </a></td>
378 <a id="Roo.MasterTemplate-method-addAll" name=".addAll"></a>
379 <div class="fixedFont">
380 <span class="attributes"></span><b class="itemname">addAll</b>
389 <div class="short">Alias for fill().</div>
424 <tr class="method-row config-row-alt0 expandable">
425 <td class="micon"><a class="exi" href="#expand"> </a></td>
429 <a id="Roo.Template-method-append" name=".append"></a>
430 <div class="fixedFont">
431 <span class="attributes"></span><b class="itemname">append</b>
433 (<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>)
439 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
448 <div class="short">Applies the supplied values to the template and appends the new node(s) to el.</div>
454 Applies the supplied values to the template and appends the new node(s) to el.
461 <dl class="detailList">
462 <dt class="heading">Parameters:</dt>
465 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
468 <dd>The context element</dd>
471 <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>
474 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
477 <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>
480 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
488 <dl class="detailList">
489 <dt class="heading">Returns:</dt>
491 <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>
507 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
513 <tr class="method-row config-row-alt1 expandable">
514 <td class="micon"><a class="exi" href="#expand"> </a></td>
518 <a id="Roo.Template-method-apply" name=".apply"></a>
519 <div class="fixedFont">
520 <span class="attributes"></span><b class="itemname">apply</b>
529 <div class="short">Alias for {<b>link</b> <b>applyTemplate</b>}</div>
535 Alias for {<b>link</b> <b>applyTemplate</b>}
558 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
564 <tr class="method-row config-row-alt0 expandable">
565 <td class="micon"><a class="exi" href="#expand"> </a></td>
569 <a id="Roo.Template-method-applyTemplate" name=".applyTemplate"></a>
570 <div class="fixedFont">
571 <span class="attributes"></span><b class="itemname">applyTemplate</b>
573 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>values</i></B>)
579 <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
588 <div class="short">Returns an HTML fragment of this template with the specified values applied.</div>
594 Returns an HTML fragment of this template with the specified values applied.
601 <dl class="detailList">
602 <dt class="heading">Parameters:</dt>
605 <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>
608 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
616 <dl class="detailList">
617 <dt class="heading">Returns:</dt>
619 <dd><span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> The HTML fragment</dd>
635 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
641 <tr class="method-row config-row-alt1 expandable">
642 <td class="micon"><a class="exi" href="#expand"> </a></td>
646 <a id="Roo.Template-method-compile" name=".compile"></a>
647 <div class="fixedFont">
648 <span class="attributes"></span><b class="itemname">compile</b>
656 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
665 <div class="short">Compiles the template into an internal function, eliminating the RegEx overhead.</div>
671 Compiles the template into an internal function, eliminating the RegEx overhead.
682 <dl class="detailList">
683 <dt class="heading">Returns:</dt>
685 <dd><span class="fixedFont"><a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a></span> this</dd>
701 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
707 <tr class="method-row config-row-alt0 expandable notInherited">
708 <td class="micon"><a class="exi" href="#expand"> </a></td>
712 <a id="Roo.MasterTemplate-method-fill" name=".fill"></a>
713 <div class="fixedFont">
714 <span class="attributes"></span><b class="itemname">fill</b>
716 (<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>)
731 <div class="short">Applies all the passed values to a child template.</div>
737 Applies all the passed values to a child template.
744 <dl class="detailList">
745 <dt class="heading">Parameters:</dt>
748 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span> <b>name</b>
751 <dd>(optional) The name or index of the child template</dd>
754 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>values</b>
757 <dd>The values to be applied to the template, this should be an array of objects.</dd>
760 <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>
763 <dd>(optional) True to reset the template first</dd>
771 <dl class="detailList">
772 <dt class="heading">Returns:</dt>
774 <dd><span class="fixedFont">MasterTemplate</span> this</dd>
796 <tr class="method-row config-row-alt1 expandable">
797 <td class="micon"><a class="exi" href="#expand"> </a></td>
801 <a id="Roo.Template-method-insertAfter" name=".insertAfter"></a>
802 <div class="fixedFont">
803 <span class="attributes"></span><b class="itemname">insertAfter</b>
805 (<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>)
811 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
820 <div class="short">Applies the supplied values to the template and inserts the new node(s) after el.</div>
826 Applies the supplied values to the template and inserts the new node(s) after el.
833 <dl class="detailList">
834 <dt class="heading">Parameters:</dt>
837 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
840 <dd>The context element</dd>
843 <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>
846 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
849 <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>
852 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
860 <dl class="detailList">
861 <dt class="heading">Returns:</dt>
863 <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>
879 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
885 <tr class="method-row config-row-alt0 expandable">
886 <td class="micon"><a class="exi" href="#expand"> </a></td>
890 <a id="Roo.Template-method-insertBefore" name=".insertBefore"></a>
891 <div class="fixedFont">
892 <span class="attributes"></span><b class="itemname">insertBefore</b>
894 (<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>)
900 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
909 <div class="short">Applies the supplied values to the template and inserts the new node(s) before el.</div>
915 Applies the supplied values to the template and inserts the new node(s) before el.
922 <dl class="detailList">
923 <dt class="heading">Parameters:</dt>
926 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
929 <dd>The context element</dd>
932 <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>
935 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
938 <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>
941 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
949 <dl class="detailList">
950 <dt class="heading">Returns:</dt>
952 <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>
968 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
974 <tr class="method-row config-row-alt1 expandable">
975 <td class="micon"><a class="exi" href="#expand"> </a></td>
979 <a id="Roo.Template-method-insertFirst" name=".insertFirst"></a>
980 <div class="fixedFont">
981 <span class="attributes"></span><b class="itemname">insertFirst</b>
983 (<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>)
989 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
998 <div class="short">Applies the supplied values to the template and inserts the new node(s) as the first child of el.</div>
1004 Applies the supplied values to the template and inserts the new node(s) as the first child of el.
1011 <dl class="detailList">
1012 <dt class="heading">Parameters:</dt>
1015 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
1018 <dd>The context element</dd>
1021 <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>
1024 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
1027 <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>
1030 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
1038 <dl class="detailList">
1039 <dt class="heading">Returns:</dt>
1041 <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>
1055 <td class="msource">
1057 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1063 <tr class="method-row config-row-alt0 expandable">
1064 <td class="micon"><a class="exi" href="#expand"> </a></td>
1068 <a id="Roo.Template-method-overwrite" name=".overwrite"></a>
1069 <div class="fixedFont">
1070 <span class="attributes"></span><b class="itemname">overwrite</b>
1072 (<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>)
1078 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
1087 <div class="short">Applies the supplied values to the template and overwrites the content of el with the new node(s).</div>
1093 Applies the supplied values to the template and overwrites the content of el with the new node(s).
1100 <dl class="detailList">
1101 <dt class="heading">Parameters:</dt>
1104 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span> <b>el</b>
1107 <dd>The context element</dd>
1110 <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>
1113 <dd>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</dd>
1116 <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>
1119 <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
1127 <dl class="detailList">
1128 <dt class="heading">Returns:</dt>
1130 <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>
1144 <td class="msource">
1146 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1152 <tr class="method-row config-row-alt1 expandable notInherited">
1153 <td class="micon"><a class="exi" href="#expand"> </a></td>
1157 <a id="Roo.MasterTemplate-method-reset" name=".reset"></a>
1158 <div class="fixedFont">
1159 <span class="attributes"></span><b class="itemname">reset</b>
1176 <div class="short">Resets the template for reuse</div>
1182 Resets the template for reuse
1193 <dl class="detailList">
1194 <dt class="heading">Returns:</dt>
1196 <dd><span class="fixedFont">MasterTemplate</span> this</dd>
1210 <td class="msource">
1218 <tr class="method-row config-row-alt0 expandable">
1219 <td class="micon"><a class="exi" href="#expand"> </a></td>
1223 <a id="Roo.Template-method-set" name=".set"></a>
1224 <div class="fixedFont">
1225 <span class="attributes"></span><b class="itemname">set</b>
1227 (<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>)
1233 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1242 <div class="short">Sets the HTML used as the template and optionally compiles it.</div>
1248 Sets the HTML used as the template and optionally compiles it.
1255 <dl class="detailList">
1256 <dt class="heading">Parameters:</dt>
1259 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>html</b>
1265 <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>
1268 <dd>(optional) True to compile the template (defaults to undefined)</dd>
1276 <dl class="detailList">
1277 <dt class="heading">Returns:</dt>
1279 <dd><span class="fixedFont"><a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a></span> this</dd>
1293 <td class="msource">
1295 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1304 <!-- ============================== events summary / details ======================== -->
1307 <a id="Roo.MasterTemplate-events"></a>
1313 <table cellspacing="0" class="member-table">
1314 <caption class="Empty">Events - Has None</caption>
1325 <!-- ============================== footer ================================= -->
1326 <div class="fineprint" style="clear:both">
1328 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Mon Jul 26 2010 15:02:37 GMT+0800 (HKT)
1330 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>