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