2 "name" : "Roo.DomTemplate",
7 "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>",
11 "memberOf" : "DomTemplate",
24 "desc" : "Called after the template has been loaded and complied (usually from a remove source)",
25 "memberOf" : "Roo.Template"
30 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
31 "memberOf" : "Roo.Template"
36 "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...",
37 "memberOf" : "Roo.Template"
42 "name" : "applySubTemplate",
44 "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);",
45 "sig" : "(id, values, parent)",
49 "isConstructor" : false,
61 "desc" : "of the template",
67 "desc" : "to apply to template",
73 "desc" : "(normaly the instance of this object)",
82 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
87 "isConstructor" : false,
99 "name" : "compileTpl",
101 "desc" : "Compile a segment of the template into a 'sub-template'",
102 "sig" : "()\n{\n\n}",
106 "isConstructor" : false,
118 "name" : "insertFirst",
120 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
121 "sig" : "(el, values, returnElement)",
123 "memberOf" : "Roo.Template",
125 "isConstructor" : false,
136 "type" : "String/HTMLElement/Roo.Element",
137 "desc" : "The context element",
143 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
147 "name" : "returnElement",
149 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
156 "type" : "HTMLElement/Roo.Element",
157 "desc" : "The new node or Element"
162 "name" : "overwrite",
164 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
165 "sig" : "(el, values, returnElement)",
167 "memberOf" : "Roo.Template",
169 "isConstructor" : false,
180 "type" : "String/HTMLElement/Roo.Element",
181 "desc" : "The context element",
187 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
191 "name" : "returnElement",
193 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
200 "type" : "HTMLElement/Roo.Element",
201 "desc" : "The new node or Element"
206 "name" : "insertBefore",
208 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
209 "sig" : "(el, values, returnElement)",
211 "memberOf" : "Roo.Template",
213 "isConstructor" : false,
224 "type" : "String/HTMLElement/Roo.Element",
225 "desc" : "The context element",
231 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
235 "name" : "returnElement",
237 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
244 "type" : "HTMLElement/Roo.Element",
245 "desc" : "The new node or Element"
250 "name" : "applyTemplate",
252 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
255 "memberOf" : "Roo.Template",
257 "isConstructor" : false,
269 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
277 "desc" : "The HTML fragment"
284 "desc" : "Sets the HTML used as the template and optionally compiles it.",
285 "sig" : "(html, compile)",
287 "memberOf" : "Roo.Template",
289 "isConstructor" : false,
307 "desc" : "(optional) True to compile the template (defaults to undefined)",
314 "type" : "Roo.Template",
322 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
325 "memberOf" : "Roo.Template",
327 "isConstructor" : false,
338 "type" : "String/HTMLElement",
339 "desc" : "A DOM element or its id",
346 "name" : "insertAfter",
348 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
349 "sig" : "(el, values, returnElement)",
351 "memberOf" : "Roo.Template",
353 "isConstructor" : false,
364 "type" : "String/HTMLElement/Roo.Element",
365 "desc" : "The context element",
371 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
375 "name" : "returnElement",
377 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
384 "type" : "HTMLElement/Roo.Element",
385 "desc" : "The new node or Element"
392 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
393 "sig" : "(el, values, returnElement)",
395 "memberOf" : "Roo.Template",
397 "isConstructor" : false,
408 "type" : "String/HTMLElement/Roo.Element",
409 "desc" : "The context element",
415 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
419 "name" : "returnElement",
421 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
428 "type" : "HTMLElement/Roo.Element",
429 "desc" : "The new node or Element"
436 "desc" : "Alias for {@link #applyTemplate}",
437 "sig" : "()\n{\n\n}",
439 "memberOf" : "Roo.Template",
441 "isConstructor" : false,