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",
21 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
22 "memberOf" : "Roo.Template",
28 "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...",
29 "memberOf" : "Roo.Template",
35 "name" : "applySubTemplate",
36 "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);",
38 "isConstructor" : false,
40 "memberOf" : "Roo.DomTemplate",
49 "desc" : "of the template",
55 "desc" : "to apply to template",
61 "desc" : "(normaly the instance of this object)",
69 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
71 "isConstructor" : false,
73 "memberOf" : "Roo.DomTemplate",
82 "name" : "compileTpl",
83 "desc" : "Compile a segment of the template into a 'sub-template'",
85 "isConstructor" : false,
87 "memberOf" : "Roo.DomTemplate",
96 "name" : "insertFirst",
97 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
99 "isConstructor" : false,
101 "memberOf" : "Roo.Template",
109 "type" : "String/HTMLElement/Roo.Element",
110 "desc" : "The context element",
116 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
120 "name" : "returnElement",
122 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
129 "type" : "HTMLElement/Roo.Element",
130 "desc" : "The new node or Element"
135 "name" : "overwrite",
136 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
138 "isConstructor" : false,
140 "memberOf" : "Roo.Template",
148 "type" : "String/HTMLElement/Roo.Element",
149 "desc" : "The context element",
155 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
159 "name" : "returnElement",
161 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
168 "type" : "HTMLElement/Roo.Element",
169 "desc" : "The new node or Element"
174 "name" : "insertBefore",
175 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
177 "isConstructor" : false,
179 "memberOf" : "Roo.Template",
187 "type" : "String/HTMLElement/Roo.Element",
188 "desc" : "The context element",
194 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
198 "name" : "returnElement",
200 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
207 "type" : "HTMLElement/Roo.Element",
208 "desc" : "The new node or Element"
213 "name" : "applyTemplate",
214 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
216 "isConstructor" : false,
218 "memberOf" : "Roo.Template",
227 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
235 "desc" : "The HTML fragment"
241 "desc" : "Sets the HTML used as the template and optionally compiles it.",
243 "isConstructor" : false,
245 "memberOf" : "Roo.Template",
260 "desc" : "(optional) True to compile the template (defaults to undefined)",
267 "type" : "Roo.Template",
274 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
276 "isConstructor" : false,
278 "memberOf" : "Roo.Template",
286 "type" : "String/HTMLElement",
287 "desc" : "A DOM element or its id",
294 "name" : "insertAfter",
295 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
297 "isConstructor" : false,
299 "memberOf" : "Roo.Template",
307 "type" : "String/HTMLElement/Roo.Element",
308 "desc" : "The context element",
314 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
318 "name" : "returnElement",
320 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
327 "type" : "HTMLElement/Roo.Element",
328 "desc" : "The new node or Element"
334 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
336 "isConstructor" : false,
338 "memberOf" : "Roo.Template",
346 "type" : "String/HTMLElement/Roo.Element",
347 "desc" : "The context element",
353 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
357 "name" : "returnElement",
359 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
366 "type" : "HTMLElement/Roo.Element",
367 "desc" : "The new node or Element"
373 "desc" : "Alias for {@link #applyTemplate}",
375 "isConstructor" : false,
377 "memberOf" : "Roo.Template",