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" : "Called after the template has been loaded and complied (usually from a remove source)",
22 "memberOf" : "Roo.Template",
28 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
29 "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",
42 "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);",
45 "isConstructor" : false,
47 "memberOf" : "Roo.DomTemplate",
56 "desc" : "of the template",
62 "desc" : "to apply to template",
68 "desc" : "(normaly the instance of this object)",
76 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
78 "isConstructor" : false,
80 "memberOf" : "Roo.DomTemplate",
89 "name" : "compileTpl",
90 "desc" : "Compile a segment of the template into a 'sub-template'",
92 "isConstructor" : false,
94 "memberOf" : "Roo.DomTemplate",
103 "name" : "insertFirst",
104 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
106 "isConstructor" : false,
108 "memberOf" : "Roo.Template",
116 "type" : "String/HTMLElement/Roo.Element",
117 "desc" : "The context element",
123 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
127 "name" : "returnElement",
129 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
136 "type" : "HTMLElement/Roo.Element",
137 "desc" : "The new node or Element"
142 "name" : "overwrite",
143 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
145 "isConstructor" : false,
147 "memberOf" : "Roo.Template",
155 "type" : "String/HTMLElement/Roo.Element",
156 "desc" : "The context element",
162 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
166 "name" : "returnElement",
168 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
175 "type" : "HTMLElement/Roo.Element",
176 "desc" : "The new node or Element"
181 "name" : "insertBefore",
182 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
184 "isConstructor" : false,
186 "memberOf" : "Roo.Template",
194 "type" : "String/HTMLElement/Roo.Element",
195 "desc" : "The context element",
201 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
205 "name" : "returnElement",
207 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
214 "type" : "HTMLElement/Roo.Element",
215 "desc" : "The new node or Element"
220 "name" : "applyTemplate",
221 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
223 "isConstructor" : false,
225 "memberOf" : "Roo.Template",
234 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
242 "desc" : "The HTML fragment"
248 "desc" : "Sets the HTML used as the template and optionally compiles it.",
250 "isConstructor" : false,
252 "memberOf" : "Roo.Template",
267 "desc" : "(optional) True to compile the template (defaults to undefined)",
274 "type" : "Roo.Template",
281 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
283 "isConstructor" : false,
285 "memberOf" : "Roo.Template",
293 "type" : "String/HTMLElement",
294 "desc" : "A DOM element or its id",
301 "name" : "insertAfter",
302 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
304 "isConstructor" : false,
306 "memberOf" : "Roo.Template",
314 "type" : "String/HTMLElement/Roo.Element",
315 "desc" : "The context element",
321 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
325 "name" : "returnElement",
327 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
334 "type" : "HTMLElement/Roo.Element",
335 "desc" : "The new node or Element"
341 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
343 "isConstructor" : false,
345 "memberOf" : "Roo.Template",
353 "type" : "String/HTMLElement/Roo.Element",
354 "desc" : "The context element",
360 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
364 "name" : "returnElement",
366 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
373 "type" : "HTMLElement/Roo.Element",
374 "desc" : "The new node or Element"
380 "desc" : "Alias for {@link #applyTemplate}",
382 "isConstructor" : false,
384 "memberOf" : "Roo.Template",