fix html editor
[roojs1] / docs / symbols / Roo.MasterTemplate.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
6         <head>
7                 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8                 <meta name="generator" content="JsDoc Toolkit" />
9                 
10                 
11                 <title>JsDoc Reference - Roo.MasterTemplate</title>
12                 
13                 
14         <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />            
15         <link rel="stylesheet" type="text/css" href="../default.css" />
16         
17         
18         <script type="text/javascript" src="../page.js">
19         
20         </script>
21          
22                 
23         </head>
24
25         <body onload="RooDocsPage.onload();">
26          
27         
28 <div class="body-wrap">
29
30     <!-- ============================== links to methods. ================================= --> 
31
32     <div class="top-tools">
33     <!--
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>
39         -->
40     </div>
41
42     
43 <!-- ============================== inheritance Block. ================================= -->    
44         
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 
48
49                    </pre>
50                 </div>
51        
52 <!-- ============================== class title / details ============================ -->
53     
54     
55     <h1 class="classTitle">
56                                 
57                                 Class Roo.MasterTemplate
58                         </h1>
59                         
60     <table cellspacing="0" class="class-summary-table">
61         
62                 <tr><td class="label">Package:</td><td class="hd-info">Roo</td></tr>
63         
64         <tr><td class="label">Defined In:</td><td class="hd-info">
65                         
66                                         <a href="./src/Roo_MasterTemplate.js.html">Roo/MasterTemplate.js</a>.
67                         
68         </td></tr>
69         <tr><td class="label">Class:</td><td class="hd-info">MasterTemplate</td></tr>
70         
71         
72         
73         
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>
76         
77                 </td></tr>    
78         
79         
80     </table>
81
82     
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/>      '&lt;select name="{name}"&gt;',<br/>            '&lt;tpl name="options"&gt;&lt;option value="{value:trim}"&gt;{text:ellipsis(10)}&lt;/option&gt;&lt;/tpl&gt;',<br/>     '&lt;/select&gt;'<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.
86     </div>
87
88         
89 <!-- ============================== Class comment block... ========================== -->                                       
90
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>
94         <br/>
95         <iframe frameborder="0"  id="comments-Roo" style="border: none;width:100%;" 
96                 src="/blog.php/GtkDjsComments/Roo.MasterTemplate.html"></iframe>
97 </div>
98         
99
100                 
101 <!-- ============================== config options ========================== -->                                               
102                  
103     
104     
105                 
106     <div class="hr"></div>
107     <a id="Roo.MasterTemplate-configs"></a>
108                 
109     
110      
111     
112         
113       <table cellspacing="0" class="member-table">   
114       <caption>Config Options (Usually are also Properties)</caption>
115     
116         
117         <tr>
118             <th class="sig-header" colspan="2">Options</th>
119             
120             <th class="msource-header">Defined By</th>
121         </tr>
122         
123         
124         
125         
126         
127                 <tr class="config-row expandable config-row-alt0">
128                    <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
129                     <td class="sig">
130
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>
134                                 
135                                 
136                         </div>
137                   
138                         <div class="mdesc">
139                             <div class="short">The HTML fragment or an array of fragments to join("") or multiple arguments to join("")</div> 
140                         </div>
141                         
142                         <div class="mdesc">
143                             <div class="long">The HTML fragment or an array of fragments to join("") or multiple arguments to join("")</div> 
144                         </div>
145                         
146                         
147
148                     </td>
149                     <td class="msource">
150                         
151                         <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
152                                 
153                     </td>
154                 </tr>
155         
156         
157     </table>
158                 
159   
160   
161   
162   
163   
164   
165   
166   
167   <!-- ============================== public properties ==================== -->        
168   
169   
170   
171     <a id="Roo.MasterTemplate-props"></a>      
172     
173     
174
175     
176     
177      <table cellspacing="0" class="member-table">
178       <caption class="Empty">Public Properties - Has None</caption>
179      </table>
180     
181     
182      
183     
184   <!-- ============================== methods summary / details ======================== -->
185   
186   
187   <a id="Roo.MasterTemplate-methods"></a>
188         <!-- constructor?? -->
189         
190         <!-- static's first 
191         
192         
193         -->
194         
195         <!-- then dynamics first -->
196         
197   
198   
199     
200     
201     
202       <table cellspacing="0" class="member-table">
203       <caption>Public Methods</caption>
204         <tr>
205             <th class="sig-header" colspan="2">Method</th>            
206             <th class="msource-header">Defined By</th>
207
208         </tr>
209         
210         
211         
212          
213         
214         
215           
216           <tr class="method-row config-row-alt0 notInherited">
217             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
218            
219            
220             <td class="sig">
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>
224                                 
225                                  () 
226                         
227                                 
228                         
229                 </div>
230                 <div class="mdesc">
231                 
232                  
233                         <div class="short">Create a new Roo.MasterTemplate</div> 
234                  
235                  
236                     <div class="long">
237                         
238                         
239                         
240                                 Create a new Roo.MasterTemplate
241                         
242                         
243                         
244                         
245                         
246                         
247                         
248                         
249
250                     
251                     
252                      
253                     </div>                    
254                 </div>
255
256             </td>
257             <td class="msource">
258                 &nbsp;
259             </td>
260         </tr>
261         
262           
263           <tr class="method-row config-row-alt1 expandable notInherited">
264             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
265            
266            
267             <td class="sig">
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>
271                                 
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>) 
273                         
274                                 
275                         
276                 </div>
277                 <div class="mdesc">
278                 
279                    <div class="short">Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML.</div> 
280                  
281                  
282                  
283                     <div class="long">
284                         
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');
286                     
287                                 
288                         
289                         
290                         
291                         
292                                 <dl class="detailList">
293                                 <dt class="heading">Parameters:</dt>
294                                 
295                                         <dt>
296                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement</span>  <b>el</b>
297                                                 
298                                         </dt>
299                                         <dd></dd>
300                                 
301                                         <dt>
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>
303                                                 
304                                         </dt>
305                                         <dd></dd>
306                                 
307                                 </dl>
308                         
309                         
310                         
311                         
312                         
313                         
314                         
315
316                     
317                     
318                      
319                     </div>                    
320                 </div>
321
322             </td>
323             <td class="msource">
324                 
325                         Roo.MasterTemplate
326                 &nbsp;
327             </td>
328         </tr>
329         
330           
331           <tr class="method-row config-row-alt0 expandable notInherited">
332             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
333            
334            
335             <td class="sig">
336                 <a id="Roo.MasterTemplate-method-add"   name=".add"></a>
337                 <div class="fixedFont">
338                         <span class="attributes"></span><b class="itemname">add</b>
339                                 
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>) 
341                         
342                                 
343                                          : 
344                                         
345                                                 
346                                                 MasterTemplate
347                                         
348                                         
349                                         
350                                 
351                         
352                 </div>
353                 <div class="mdesc">
354                 
355                    <div class="short">Applies the passed values to a child template.</div> 
356                  
357                  
358                  
359                     <div class="long">
360                         
361                                 Applies the passed values to a child template.
362                     
363                                 
364                         
365                         
366                         
367                         
368                                 <dl class="detailList">
369                                 <dt class="heading">Parameters:</dt>
370                                 
371                                         <dt>
372                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span>  <b>name</b>
373                                                 
374                                         </dt>
375                                         <dd>(optional) The name or index of the child template</dd>
376                                 
377                                         <dt>
378                                                 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a>/Object</span>  <b>values</b>
379                                                 
380                                         </dt>
381                                         <dd>The values to be applied to the template</dd>
382                                 
383                                 </dl>
384                         
385                         
386                         
387                         
388                         
389                                 <dl class="detailList">
390                                 <dt class="heading">Returns:</dt>
391                                 
392                                         <dd><span class="fixedFont">MasterTemplate</span>  this</dd>
393                                 
394                                 </dl>
395                         
396                         
397                         
398
399                     
400                     
401                      
402                     </div>                    
403                 </div>
404
405             </td>
406             <td class="msource">
407                 
408                         Roo.MasterTemplate
409                 &nbsp;
410             </td>
411         </tr>
412         
413           
414           <tr class="method-row config-row-alt1 expandable notInherited">
415             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
416            
417            
418             <td class="sig">
419                 <a id="Roo.MasterTemplate-method-addAll"   name=".addAll"></a>
420                 <div class="fixedFont">
421                         <span class="attributes"></span><b class="itemname">addAll</b>
422                                 
423                                  () 
424                         
425                                 
426                         
427                 </div>
428                 <div class="mdesc">
429                 
430                    <div class="short">Alias for fill().</div> 
431                  
432                  
433                  
434                     <div class="long">
435                         
436                                 Alias for fill().
437                     
438                                 
439                         
440                         
441                         
442                         
443                         
444                         
445                         
446                         
447                         
448                         
449
450                     
451                     
452                      
453                     </div>                    
454                 </div>
455
456             </td>
457             <td class="msource">
458                 
459                         Roo.MasterTemplate
460                 &nbsp;
461             </td>
462         </tr>
463         
464           
465           <tr class="method-row config-row-alt0 expandable">
466             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
467            
468            
469             <td class="sig">
470                 <a id="Roo.Template-method-append"   name=".append"></a>
471                 <div class="fixedFont">
472                         <span class="attributes"></span><b class="itemname">append</b>
473                                 
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>) 
475                         
476                                 
477                                          : 
478                                         
479                                                 
480                                                 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
481                                         
482                                         
483                                         
484                                 
485                         
486                 </div>
487                 <div class="mdesc">
488                 
489                    <div class="short">Applies the supplied values to the template and appends the new node(s) to el.</div> 
490                  
491                  
492                  
493                     <div class="long">
494                         
495                                 Applies the supplied values to the template and appends the new node(s) to el.
496                     
497                                 
498                         
499                         
500                         
501                         
502                                 <dl class="detailList">
503                                 <dt class="heading">Parameters:</dt>
504                                 
505                                         <dt>
506                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span>  <b>el</b>
507                                                 
508                                         </dt>
509                                         <dd>The context element</dd>
510                                 
511                                         <dt>
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>
513                                                 
514                                         </dt>
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>
516                                 
517                                         <dt>
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>
519                                                 
520                                         </dt>
521                                         <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
522                                 
523                                 </dl>
524                         
525                         
526                         
527                         
528                         
529                                 <dl class="detailList">
530                                 <dt class="heading">Returns:</dt>
531                                 
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>
533                                 
534                                 </dl>
535                         
536                         
537                         
538
539                     
540                     
541                      
542                     </div>                    
543                 </div>
544
545             </td>
546             <td class="msource">
547                 
548                         <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
549                 &nbsp;
550             </td>
551         </tr>
552         
553           
554           <tr class="method-row config-row-alt1 expandable">
555             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
556            
557            
558             <td class="sig">
559                 <a id="Roo.Template-method-apply"   name=".apply"></a>
560                 <div class="fixedFont">
561                         <span class="attributes"></span><b class="itemname">apply</b>
562                                 
563                                  () 
564                         
565                                 
566                         
567                 </div>
568                 <div class="mdesc">
569                 
570                    <div class="short">Alias for {<b>link</b> <b>applyTemplate</b>}</div> 
571                  
572                  
573                  
574                     <div class="long">
575                         
576                                 Alias for {<b>link</b> <b>applyTemplate</b>}
577                     
578                                 
579                         
580                         
581                         
582                         
583                         
584                         
585                         
586                         
587                         
588                         
589
590                     
591                     
592                      
593                     </div>                    
594                 </div>
595
596             </td>
597             <td class="msource">
598                 
599                         <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
600                 &nbsp;
601             </td>
602         </tr>
603         
604           
605           <tr class="method-row config-row-alt0 expandable">
606             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
607            
608            
609             <td class="sig">
610                 <a id="Roo.Template-method-applyTemplate"   name=".applyTemplate"></a>
611                 <div class="fixedFont">
612                         <span class="attributes"></span><b class="itemname">applyTemplate</b>
613                                 
614                                  (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>values</i></B>) 
615                         
616                                 
617                                          : 
618                                         
619                                                 
620                                                 <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
621                                         
622                                         
623                                         
624                                 
625                         
626                 </div>
627                 <div class="mdesc">
628                 
629                    <div class="short">Returns an HTML fragment of this template with the specified values applied.</div> 
630                  
631                  
632                  
633                     <div class="long">
634                         
635                                 Returns an HTML fragment of this template with the specified values applied.
636                     
637                                 
638                         
639                         
640                         
641                         
642                                 <dl class="detailList">
643                                 <dt class="heading">Parameters:</dt>
644                                 
645                                         <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>
647                                                 
648                                         </dt>
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>
650                                 
651                                 </dl>
652                         
653                         
654                         
655                         
656                         
657                                 <dl class="detailList">
658                                 <dt class="heading">Returns:</dt>
659                                 
660                                         <dd><span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  The HTML fragment</dd>
661                                 
662                                 </dl>
663                         
664                         
665                         
666
667                     
668                     
669                      
670                     </div>                    
671                 </div>
672
673             </td>
674             <td class="msource">
675                 
676                         <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
677                 &nbsp;
678             </td>
679         </tr>
680         
681           
682           <tr class="method-row config-row-alt1 expandable">
683             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
684            
685            
686             <td class="sig">
687                 <a id="Roo.Template-method-compile"   name=".compile"></a>
688                 <div class="fixedFont">
689                         <span class="attributes"></span><b class="itemname">compile</b>
690                                 
691                                  () 
692                         
693                                 
694                                          : 
695                                         
696                                                 
697                                                 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
698                                         
699                                         
700                                         
701                                 
702                         
703                 </div>
704                 <div class="mdesc">
705                 
706                    <div class="short">Compiles the template into an internal function, eliminating the RegEx overhead.</div> 
707                  
708                  
709                  
710                     <div class="long">
711                         
712                                 Compiles the template into an internal function, eliminating the RegEx overhead.
713                     
714                                 
715                         
716                         
717                         
718                         
719                         
720                         
721                         
722                         
723                                 <dl class="detailList">
724                                 <dt class="heading">Returns:</dt>
725                                 
726                                         <dd><span class="fixedFont"><a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a></span>  this</dd>
727                                 
728                                 </dl>
729                         
730                         
731                         
732
733                     
734                     
735                      
736                     </div>                    
737                 </div>
738
739             </td>
740             <td class="msource">
741                 
742                         <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
743                 &nbsp;
744             </td>
745         </tr>
746         
747           
748           <tr class="method-row config-row-alt0 expandable notInherited">
749             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
750            
751            
752             <td class="sig">
753                 <a id="Roo.MasterTemplate-method-fill"   name=".fill"></a>
754                 <div class="fixedFont">
755                         <span class="attributes"></span><b class="itemname">fill</b>
756                                 
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>) 
758                         
759                                 
760                                          : 
761                                         
762                                                 
763                                                 MasterTemplate
764                                         
765                                         
766                                         
767                                 
768                         
769                 </div>
770                 <div class="mdesc">
771                 
772                    <div class="short">Applies all the passed values to a child template.</div> 
773                  
774                  
775                  
776                     <div class="long">
777                         
778                                 Applies all the passed values to a child template.
779                     
780                                 
781                         
782                         
783                         
784                         
785                                 <dl class="detailList">
786                                 <dt class="heading">Parameters:</dt>
787                                 
788                                         <dt>
789                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/Number</span>  <b>name</b>
790                                                 
791                                         </dt>
792                                         <dd>(optional) The name or index of the child template</dd>
793                                 
794                                         <dt>
795                                                 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span>  <b>values</b>
796                                                 
797                                         </dt>
798                                         <dd>The values to be applied to the template, this should be an array of objects.</dd>
799                                 
800                                         <dt>
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>
802                                                 
803                                         </dt>
804                                         <dd>(optional) True to reset the template first</dd>
805                                 
806                                 </dl>
807                         
808                         
809                         
810                         
811                         
812                                 <dl class="detailList">
813                                 <dt class="heading">Returns:</dt>
814                                 
815                                         <dd><span class="fixedFont">MasterTemplate</span>  this</dd>
816                                 
817                                 </dl>
818                         
819                         
820                         
821
822                     
823                     
824                      
825                     </div>                    
826                 </div>
827
828             </td>
829             <td class="msource">
830                 
831                         Roo.MasterTemplate
832                 &nbsp;
833             </td>
834         </tr>
835         
836           
837           <tr class="method-row config-row-alt1 expandable">
838             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
839            
840            
841             <td class="sig">
842                 <a id="Roo.Template-method-insertAfter"   name=".insertAfter"></a>
843                 <div class="fixedFont">
844                         <span class="attributes"></span><b class="itemname">insertAfter</b>
845                                 
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>) 
847                         
848                                 
849                                          : 
850                                         
851                                                 
852                                                 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
853                                         
854                                         
855                                         
856                                 
857                         
858                 </div>
859                 <div class="mdesc">
860                 
861                    <div class="short">Applies the supplied values to the template and inserts the new node(s) after el.</div> 
862                  
863                  
864                  
865                     <div class="long">
866                         
867                                 Applies the supplied values to the template and inserts the new node(s) after el.
868                     
869                                 
870                         
871                         
872                         
873                         
874                                 <dl class="detailList">
875                                 <dt class="heading">Parameters:</dt>
876                                 
877                                         <dt>
878                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span>  <b>el</b>
879                                                 
880                                         </dt>
881                                         <dd>The context element</dd>
882                                 
883                                         <dt>
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>
885                                                 
886                                         </dt>
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>
888                                 
889                                         <dt>
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>
891                                                 
892                                         </dt>
893                                         <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
894                                 
895                                 </dl>
896                         
897                         
898                         
899                         
900                         
901                                 <dl class="detailList">
902                                 <dt class="heading">Returns:</dt>
903                                 
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>
905                                 
906                                 </dl>
907                         
908                         
909                         
910
911                     
912                     
913                      
914                     </div>                    
915                 </div>
916
917             </td>
918             <td class="msource">
919                 
920                         <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
921                 &nbsp;
922             </td>
923         </tr>
924         
925           
926           <tr class="method-row config-row-alt0 expandable">
927             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
928            
929            
930             <td class="sig">
931                 <a id="Roo.Template-method-insertBefore"   name=".insertBefore"></a>
932                 <div class="fixedFont">
933                         <span class="attributes"></span><b class="itemname">insertBefore</b>
934                                 
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>) 
936                         
937                                 
938                                          : 
939                                         
940                                                 
941                                                 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
942                                         
943                                         
944                                         
945                                 
946                         
947                 </div>
948                 <div class="mdesc">
949                 
950                    <div class="short">Applies the supplied values to the template and inserts the new node(s) before el.</div> 
951                  
952                  
953                  
954                     <div class="long">
955                         
956                                 Applies the supplied values to the template and inserts the new node(s) before el.
957                     
958                                 
959                         
960                         
961                         
962                         
963                                 <dl class="detailList">
964                                 <dt class="heading">Parameters:</dt>
965                                 
966                                         <dt>
967                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span>  <b>el</b>
968                                                 
969                                         </dt>
970                                         <dd>The context element</dd>
971                                 
972                                         <dt>
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>
974                                                 
975                                         </dt>
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>
977                                 
978                                         <dt>
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>
980                                                 
981                                         </dt>
982                                         <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
983                                 
984                                 </dl>
985                         
986                         
987                         
988                         
989                         
990                                 <dl class="detailList">
991                                 <dt class="heading">Returns:</dt>
992                                 
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>
994                                 
995                                 </dl>
996                         
997                         
998                         
999
1000                     
1001                     
1002                      
1003                     </div>                    
1004                 </div>
1005
1006             </td>
1007             <td class="msource">
1008                 
1009                         <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1010                 &nbsp;
1011             </td>
1012         </tr>
1013         
1014           
1015           <tr class="method-row config-row-alt1 expandable">
1016             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1017            
1018            
1019             <td class="sig">
1020                 <a id="Roo.Template-method-insertFirst"   name=".insertFirst"></a>
1021                 <div class="fixedFont">
1022                         <span class="attributes"></span><b class="itemname">insertFirst</b>
1023                                 
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>) 
1025                         
1026                                 
1027                                          : 
1028                                         
1029                                                 
1030                                                 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
1031                                         
1032                                         
1033                                         
1034                                 
1035                         
1036                 </div>
1037                 <div class="mdesc">
1038                 
1039                    <div class="short">Applies the supplied values to the template and inserts the new node(s) as the first child of el.</div> 
1040                  
1041                  
1042                  
1043                     <div class="long">
1044                         
1045                                 Applies the supplied values to the template and inserts the new node(s) as the first child of el.
1046                     
1047                                 
1048                         
1049                         
1050                         
1051                         
1052                                 <dl class="detailList">
1053                                 <dt class="heading">Parameters:</dt>
1054                                 
1055                                         <dt>
1056                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span>  <b>el</b>
1057                                                 
1058                                         </dt>
1059                                         <dd>The context element</dd>
1060                                 
1061                                         <dt>
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>
1063                                                 
1064                                         </dt>
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>
1066                                 
1067                                         <dt>
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>
1069                                                 
1070                                         </dt>
1071                                         <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
1072                                 
1073                                 </dl>
1074                         
1075                         
1076                         
1077                         
1078                         
1079                                 <dl class="detailList">
1080                                 <dt class="heading">Returns:</dt>
1081                                 
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>
1083                                 
1084                                 </dl>
1085                         
1086                         
1087                         
1088
1089                     
1090                     
1091                      
1092                     </div>                    
1093                 </div>
1094
1095             </td>
1096             <td class="msource">
1097                 
1098                         <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1099                 &nbsp;
1100             </td>
1101         </tr>
1102         
1103           
1104           <tr class="method-row config-row-alt0 expandable">
1105             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1106            
1107            
1108             <td class="sig">
1109                 <a id="Roo.Template-method-overwrite"   name=".overwrite"></a>
1110                 <div class="fixedFont">
1111                         <span class="attributes"></span><b class="itemname">overwrite</b>
1112                                 
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>) 
1114                         
1115                                 
1116                                          : 
1117                                         
1118                                                 
1119                                                 <a href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-58190037">HTMLElement</a>/Roo.Element
1120                                         
1121                                         
1122                                         
1123                                 
1124                         
1125                 </div>
1126                 <div class="mdesc">
1127                 
1128                    <div class="short">Applies the supplied values to the template and overwrites the content of el with the new node(s).</div> 
1129                  
1130                  
1131                  
1132                     <div class="long">
1133                         
1134                                 Applies the supplied values to the template and overwrites the content of el with the new node(s).
1135                     
1136                                 
1137                         
1138                         
1139                         
1140                         
1141                                 <dl class="detailList">
1142                                 <dt class="heading">Parameters:</dt>
1143                                 
1144                                         <dt>
1145                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>/HTMLElement/Roo.Element</span>  <b>el</b>
1146                                                 
1147                                         </dt>
1148                                         <dd>The context element</dd>
1149                                 
1150                                         <dt>
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>
1152                                                 
1153                                         </dt>
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>
1155                                 
1156                                         <dt>
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>
1158                                                 
1159                                         </dt>
1160                                         <dd>(optional) true to return a Roo.Element (defaults to undefined)</dd>
1161                                 
1162                                 </dl>
1163                         
1164                         
1165                         
1166                         
1167                         
1168                                 <dl class="detailList">
1169                                 <dt class="heading">Returns:</dt>
1170                                 
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>
1172                                 
1173                                 </dl>
1174                         
1175                         
1176                         
1177
1178                     
1179                     
1180                      
1181                     </div>                    
1182                 </div>
1183
1184             </td>
1185             <td class="msource">
1186                 
1187                         <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1188                 &nbsp;
1189             </td>
1190         </tr>
1191         
1192           
1193           <tr class="method-row config-row-alt1 expandable notInherited">
1194             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1195            
1196            
1197             <td class="sig">
1198                 <a id="Roo.MasterTemplate-method-reset"   name=".reset"></a>
1199                 <div class="fixedFont">
1200                         <span class="attributes"></span><b class="itemname">reset</b>
1201                                 
1202                                  () 
1203                         
1204                                 
1205                                          : 
1206                                         
1207                                                 
1208                                                 MasterTemplate
1209                                         
1210                                         
1211                                         
1212                                 
1213                         
1214                 </div>
1215                 <div class="mdesc">
1216                 
1217                    <div class="short">Resets the template for reuse</div> 
1218                  
1219                  
1220                  
1221                     <div class="long">
1222                         
1223                                 Resets the template for reuse
1224                     
1225                                 
1226                         
1227                         
1228                         
1229                         
1230                         
1231                         
1232                         
1233                         
1234                                 <dl class="detailList">
1235                                 <dt class="heading">Returns:</dt>
1236                                 
1237                                         <dd><span class="fixedFont">MasterTemplate</span>  this</dd>
1238                                 
1239                                 </dl>
1240                         
1241                         
1242                         
1243
1244                     
1245                     
1246                      
1247                     </div>                    
1248                 </div>
1249
1250             </td>
1251             <td class="msource">
1252                 
1253                         Roo.MasterTemplate
1254                 &nbsp;
1255             </td>
1256         </tr>
1257         
1258           
1259           <tr class="method-row config-row-alt0 expandable">
1260             <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1261            
1262            
1263             <td class="sig">
1264                 <a id="Roo.Template-method-set"   name=".set"></a>
1265                 <div class="fixedFont">
1266                         <span class="attributes"></span><b class="itemname">set</b>
1267                                 
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>) 
1269                         
1270                                 
1271                                          : 
1272                                         
1273                                                 
1274                                                 <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1275                                         
1276                                         
1277                                         
1278                                 
1279                         
1280                 </div>
1281                 <div class="mdesc">
1282                 
1283                    <div class="short">Sets the HTML used as the template and optionally compiles it.</div> 
1284                  
1285                  
1286                  
1287                     <div class="long">
1288                         
1289                                 Sets the HTML used as the template and optionally compiles it.
1290                     
1291                                 
1292                         
1293                         
1294                         
1295                         
1296                                 <dl class="detailList">
1297                                 <dt class="heading">Parameters:</dt>
1298                                 
1299                                         <dt>
1300                                                 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span>  <b>html</b>
1301                                                 
1302                                         </dt>
1303                                         <dd></dd>
1304                                 
1305                                         <dt>
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>
1307                                                 
1308                                         </dt>
1309                                         <dd>(optional) True to compile the template (defaults to undefined)</dd>
1310                                 
1311                                 </dl>
1312                         
1313                         
1314                         
1315                         
1316                         
1317                                 <dl class="detailList">
1318                                 <dt class="heading">Returns:</dt>
1319                                 
1320                                         <dd><span class="fixedFont"><a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a></span>  this</dd>
1321                                 
1322                                 </dl>
1323                         
1324                         
1325                         
1326
1327                     
1328                     
1329                      
1330                     </div>                    
1331                 </div>
1332
1333             </td>
1334             <td class="msource">
1335                 
1336                         <a href="./Roo.Template.html#constructor" roo:cls="Roo.Template.html#constructor">Roo.Template</a>
1337                 &nbsp;
1338             </td>
1339         </tr>
1340         
1341                                                        
1342     </table>
1343
1344   
1345   <!-- ============================== events summary / details ======================== -->
1346   
1347   
1348   <a id="Roo.MasterTemplate-events"></a>
1349     
1350   
1351         
1352    
1353     
1354      <table cellspacing="0" class="member-table">
1355       <caption class="Empty">Events - Has None</caption>
1356      </table>
1357     
1358     
1359   
1360     
1361     
1362   
1363   
1364   
1365  
1366 <!-- ============================== footer ================================= -->
1367                 <div class="fineprint" style="clear:both">
1368                         
1369                         Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a>  on Fri Dec 16 2011 12:06:00 GMT+0800 (HKT)
1370                         Based on 
1371                         <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>  
1372                 </div>
1373         </body>
1374 </html>