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