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",
36 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
37 "memberOf" : "Roo.Template",
44 "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...",
45 "memberOf" : "Roo.Template",
52 "name" : "applySubTemplate",
54 "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);",
55 "sig" : "(id, values, parent)",
59 "isConstructor" : false,
71 "desc" : "of the template",
77 "desc" : "to apply to template",
83 "desc" : "(normaly the instance of this object)",
92 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
97 "isConstructor" : false,
109 "name" : "compileTpl",
111 "desc" : "Compile a segment of the template into a 'sub-template'",
112 "sig" : "()\n{\n\n}",
116 "isConstructor" : false,
128 "name" : "insertFirst",
130 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
131 "sig" : "(el, values, returnElement)",
133 "memberOf" : "Roo.Template",
135 "isConstructor" : false,
146 "type" : "String/HTMLElement/Roo.Element",
147 "desc" : "The context element",
153 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
157 "name" : "returnElement",
159 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
166 "type" : "HTMLElement/Roo.Element",
167 "desc" : "The new node or Element"
172 "name" : "overwrite",
174 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
175 "sig" : "(el, values, returnElement)",
177 "memberOf" : "Roo.Template",
179 "isConstructor" : false,
190 "type" : "String/HTMLElement/Roo.Element",
191 "desc" : "The context element",
197 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
201 "name" : "returnElement",
203 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
210 "type" : "HTMLElement/Roo.Element",
211 "desc" : "The new node or Element"
216 "name" : "insertBefore",
218 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
219 "sig" : "(el, values, returnElement)",
221 "memberOf" : "Roo.Template",
223 "isConstructor" : false,
234 "type" : "String/HTMLElement/Roo.Element",
235 "desc" : "The context element",
241 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
245 "name" : "returnElement",
247 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
254 "type" : "HTMLElement/Roo.Element",
255 "desc" : "The new node or Element"
260 "name" : "applyTemplate",
262 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
265 "memberOf" : "Roo.Template",
267 "isConstructor" : false,
279 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
287 "desc" : "The HTML fragment"
294 "desc" : "Sets the HTML used as the template and optionally compiles it.",
295 "sig" : "(html, compile)",
297 "memberOf" : "Roo.Template",
299 "isConstructor" : false,
317 "desc" : "(optional) True to compile the template (defaults to undefined)",
324 "type" : "Roo.Template",
332 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
335 "memberOf" : "Roo.Template",
337 "isConstructor" : false,
348 "type" : "String/HTMLElement",
349 "desc" : "A DOM element or its id",
356 "name" : "insertAfter",
358 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
359 "sig" : "(el, values, returnElement)",
361 "memberOf" : "Roo.Template",
363 "isConstructor" : false,
374 "type" : "String/HTMLElement/Roo.Element",
375 "desc" : "The context element",
381 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
385 "name" : "returnElement",
387 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
394 "type" : "HTMLElement/Roo.Element",
395 "desc" : "The new node or Element"
402 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
403 "sig" : "(el, values, returnElement)",
405 "memberOf" : "Roo.Template",
407 "isConstructor" : false,
418 "type" : "String/HTMLElement/Roo.Element",
419 "desc" : "The context element",
425 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
429 "name" : "returnElement",
431 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
438 "type" : "HTMLElement/Roo.Element",
439 "desc" : "The new node or Element"
446 "desc" : "Alias for {@link #applyTemplate}",
447 "sig" : "()\n{\n\n}",
449 "memberOf" : "Roo.Template",
451 "isConstructor" : false,