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" : "Called after the template has been loaded and complied (usually from a remove source)",
24 "memberOf" : "Roo.Template"
29 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
30 "memberOf" : "Roo.Template"
35 "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...",
36 "memberOf" : "Roo.Template"
41 "name" : "applySubTemplate",
43 "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);",
44 "sig" : "(id, values, parent)",
48 "isConstructor" : false,
60 "desc" : "of the template",
66 "desc" : "to apply to template",
72 "desc" : "(normaly the instance of this object)",
81 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
86 "isConstructor" : false,
98 "name" : "compileTpl",
100 "desc" : "Compile a segment of the template into a 'sub-template'",
101 "sig" : "()\n{\n\n}",
105 "isConstructor" : false,
117 "name" : "insertFirst",
119 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
120 "sig" : "(el, values, returnElement)",
122 "memberOf" : "Roo.Template",
124 "isConstructor" : false,
135 "type" : "String/HTMLElement/Roo.Element",
136 "desc" : "The context element",
142 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
146 "name" : "returnElement",
148 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
155 "type" : "HTMLElement/Roo.Element",
156 "desc" : "The new node or Element"
161 "name" : "overwrite",
163 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
164 "sig" : "(el, values, returnElement)",
166 "memberOf" : "Roo.Template",
168 "isConstructor" : false,
179 "type" : "String/HTMLElement/Roo.Element",
180 "desc" : "The context element",
186 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
190 "name" : "returnElement",
192 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
199 "type" : "HTMLElement/Roo.Element",
200 "desc" : "The new node or Element"
205 "name" : "insertBefore",
207 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
208 "sig" : "(el, values, returnElement)",
210 "memberOf" : "Roo.Template",
212 "isConstructor" : false,
223 "type" : "String/HTMLElement/Roo.Element",
224 "desc" : "The context element",
230 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
234 "name" : "returnElement",
236 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
243 "type" : "HTMLElement/Roo.Element",
244 "desc" : "The new node or Element"
249 "name" : "applyTemplate",
251 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
254 "memberOf" : "Roo.Template",
256 "isConstructor" : false,
268 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
276 "desc" : "The HTML fragment"
283 "desc" : "Sets the HTML used as the template and optionally compiles it.",
284 "sig" : "(html, compile)",
286 "memberOf" : "Roo.Template",
288 "isConstructor" : false,
306 "desc" : "(optional) True to compile the template (defaults to undefined)",
313 "type" : "Roo.Template",
321 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
324 "memberOf" : "Roo.Template",
326 "isConstructor" : false,
337 "type" : "String/HTMLElement",
338 "desc" : "A DOM element or its id",
345 "name" : "insertAfter",
347 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
348 "sig" : "(el, values, returnElement)",
350 "memberOf" : "Roo.Template",
352 "isConstructor" : false,
363 "type" : "String/HTMLElement/Roo.Element",
364 "desc" : "The context element",
370 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
374 "name" : "returnElement",
376 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
383 "type" : "HTMLElement/Roo.Element",
384 "desc" : "The new node or Element"
391 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
392 "sig" : "(el, values, returnElement)",
394 "memberOf" : "Roo.Template",
396 "isConstructor" : false,
407 "type" : "String/HTMLElement/Roo.Element",
408 "desc" : "The context element",
414 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
418 "name" : "returnElement",
420 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
427 "type" : "HTMLElement/Roo.Element",
428 "desc" : "The new node or Element"
435 "desc" : "Alias for {@link #applyTemplate}",
436 "sig" : "()\n{\n\n}",
438 "memberOf" : "Roo.Template",
440 "isConstructor" : false,