2 "name" : "Roo.DomTemplate",
9 "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 "isSingleton" : false,
14 "isBuilderTop" : false,
15 "memberOf" : "DomTemplate",
28 "desc" : "Called after the template has been loaded and complied (usually from a remove source)",
29 "memberOf" : "Roo.Template"
34 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
35 "memberOf" : "Roo.Template"
40 "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...",
41 "memberOf" : "Roo.Template"
46 "name" : "applySubTemplate",
48 "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);",
49 "sig" : "(id, values, parent)",
53 "isConstructor" : false,
65 "desc" : "of the template",
71 "desc" : "to apply to template",
77 "desc" : "(normaly the instance of this object)",
86 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
91 "isConstructor" : false,
103 "name" : "compileTpl",
105 "desc" : "Compile a segment of the template into a 'sub-template'",
106 "sig" : "()\n{\n\n}",
110 "isConstructor" : false,
122 "name" : "insertFirst",
124 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
125 "sig" : "(el, values, returnElement)",
127 "memberOf" : "Roo.Template",
129 "isConstructor" : false,
140 "type" : "String/HTMLElement/Roo.Element",
141 "desc" : "The context element",
147 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
151 "name" : "returnElement",
153 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
160 "type" : "HTMLElement/Roo.Element",
161 "desc" : "The new node or Element"
166 "name" : "overwrite",
168 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
169 "sig" : "(el, values, returnElement)",
171 "memberOf" : "Roo.Template",
173 "isConstructor" : false,
184 "type" : "String/HTMLElement/Roo.Element",
185 "desc" : "The context element",
191 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
195 "name" : "returnElement",
197 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
204 "type" : "HTMLElement/Roo.Element",
205 "desc" : "The new node or Element"
210 "name" : "insertBefore",
212 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
213 "sig" : "(el, values, returnElement)",
215 "memberOf" : "Roo.Template",
217 "isConstructor" : false,
228 "type" : "String/HTMLElement/Roo.Element",
229 "desc" : "The context element",
235 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
239 "name" : "returnElement",
241 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
248 "type" : "HTMLElement/Roo.Element",
249 "desc" : "The new node or Element"
254 "name" : "applyTemplate",
256 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
259 "memberOf" : "Roo.Template",
261 "isConstructor" : false,
273 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
281 "desc" : "The HTML fragment"
288 "desc" : "Sets the HTML used as the template and optionally compiles it.",
289 "sig" : "(html, compile)",
291 "memberOf" : "Roo.Template",
293 "isConstructor" : false,
311 "desc" : "(optional) True to compile the template (defaults to undefined)",
318 "type" : "Roo.Template",
326 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
329 "memberOf" : "Roo.Template",
331 "isConstructor" : false,
342 "type" : "String/HTMLElement",
343 "desc" : "A DOM element or its id",
350 "name" : "insertAfter",
352 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
353 "sig" : "(el, values, returnElement)",
355 "memberOf" : "Roo.Template",
357 "isConstructor" : false,
368 "type" : "String/HTMLElement/Roo.Element",
369 "desc" : "The context element",
375 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
379 "name" : "returnElement",
381 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
388 "type" : "HTMLElement/Roo.Element",
389 "desc" : "The new node or Element"
396 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
397 "sig" : "(el, values, returnElement)",
399 "memberOf" : "Roo.Template",
401 "isConstructor" : false,
412 "type" : "String/HTMLElement/Roo.Element",
413 "desc" : "The context element",
419 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
423 "name" : "returnElement",
425 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
432 "type" : "HTMLElement/Roo.Element",
433 "desc" : "The new node or Element"
440 "desc" : "Alias for {@link #applyTemplate}",
441 "sig" : "()\n{\n\n}",
443 "memberOf" : "Roo.Template",
445 "isConstructor" : false,