2 "name" : "Roo.DomTemplate",
6 "desc" : "An effort at a dom based template engine..\n\nSimilar to XTemplate, except it uses dom parsing to create the template..\n\nSupported features:\n\n Tags:\n\n<pre><code>\n {a_variable} - output encoded.\n {a_variable.format:(\"Y-m-d\")} - call a method on the variable\n {a_variable:raw} - unencoded output\n {a_variable:toFixed(1,2)} - Roo.util.Format.\"toFixed\"\n {a_variable:this.method_on_template(...)} - call a method on the template object.\n \n</code></pre>\n The tpl tag:\n<pre><code>\n <div roo-for=\"a_variable or condition..\"></div>\n <div roo-if=\"a_variable or condition\"></div>\n <div roo-exec=\"some javascript\"></div>\n <div roo-name=\"named_template\"></div> \n \n</code></pre>",
10 "memberOf" : "DomTemplate",
23 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
24 "memberOf" : "Roo.Template",
31 "desc" : "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..\n it should be fixed so that template is observable...",
32 "memberOf" : "Roo.Template",
39 "name" : "applySubTemplate",
40 "desc" : "same as applyTemplate, except it's done to one of the subTemplates\nwhen using named templates, you can do:\n\nvar str = pl.applySubTemplate('your-name', values);",
42 "isConstructor" : false,
44 "memberOf" : "Roo.DomTemplate",
53 "desc" : "of the template",
59 "desc" : "to apply to template",
65 "desc" : "(normaly the instance of this object)",
74 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
76 "isConstructor" : false,
78 "memberOf" : "Roo.DomTemplate",
89 "name" : "compileTpl",
90 "desc" : "Compile a segment of the template into a 'sub-template'",
92 "isConstructor" : false,
94 "memberOf" : "Roo.DomTemplate",
105 "name" : "insertFirst",
106 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
108 "isConstructor" : false,
110 "memberOf" : "Roo.Template",
118 "type" : "String/HTMLElement/Roo.Element",
119 "desc" : "The context element",
125 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
129 "name" : "returnElement",
131 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
138 "type" : "HTMLElement/Roo.Element",
139 "desc" : "The new node or Element"
144 "name" : "overwrite",
145 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
147 "isConstructor" : false,
149 "memberOf" : "Roo.Template",
157 "type" : "String/HTMLElement/Roo.Element",
158 "desc" : "The context element",
164 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
168 "name" : "returnElement",
170 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
177 "type" : "HTMLElement/Roo.Element",
178 "desc" : "The new node or Element"
183 "name" : "insertBefore",
184 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
186 "isConstructor" : false,
188 "memberOf" : "Roo.Template",
196 "type" : "String/HTMLElement/Roo.Element",
197 "desc" : "The context element",
203 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
207 "name" : "returnElement",
209 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
216 "type" : "HTMLElement/Roo.Element",
217 "desc" : "The new node or Element"
222 "name" : "applyTemplate",
223 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
225 "isConstructor" : false,
227 "memberOf" : "Roo.Template",
236 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
244 "desc" : "The HTML fragment"
250 "desc" : "Sets the HTML used as the template and optionally compiles it.",
252 "isConstructor" : false,
254 "memberOf" : "Roo.Template",
269 "desc" : "(optional) True to compile the template (defaults to undefined)",
276 "type" : "Roo.Template",
283 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
285 "isConstructor" : false,
287 "memberOf" : "Roo.Template",
295 "type" : "String/HTMLElement",
296 "desc" : "A DOM element or its id",
304 "name" : "insertAfter",
305 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
307 "isConstructor" : false,
309 "memberOf" : "Roo.Template",
317 "type" : "String/HTMLElement/Roo.Element",
318 "desc" : "The context element",
324 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
328 "name" : "returnElement",
330 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
337 "type" : "HTMLElement/Roo.Element",
338 "desc" : "The new node or Element"
344 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
346 "isConstructor" : false,
348 "memberOf" : "Roo.Template",
356 "type" : "String/HTMLElement/Roo.Element",
357 "desc" : "The context element",
363 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
367 "name" : "returnElement",
369 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
376 "type" : "HTMLElement/Roo.Element",
377 "desc" : "The new node or Element"
383 "desc" : "Alias for {@link #applyTemplate}",
385 "isConstructor" : false,
387 "memberOf" : "Roo.Template",