2 "name" : "Roo.XTemplate",
6 "desc" : "Provides a template that can have nested templates for loops or conditionals. The syntax is:\n<pre><code>\nvar t = new Roo.XTemplate(\n\t'<select name=\"{name}\">',\n\t\t'<tpl for=\"options\"><option value=\"{value:trim}\">{text:ellipsis(10)}</option></tpl>',\n\t'</select>'\n);\n \n// then append, applying the master template values\n </code></pre>\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 <tpl for=\"a_variable or condition..\"></tpl>\n <tpl if=\"a_variable or condition\"></tpl>\n <tpl exec=\"some javascript\"></tpl>\n <tpl name=\"named_template\"></tpl> (experimental)\n \n <tpl for=\".\"></tpl> - just iterate the property..\n <tpl for=\"..\"></tpl> - iterates with the parent (probably the template) \n</code></pre>",
14 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
15 "memberOf" : "Roo.Template",
22 "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...",
23 "memberOf" : "Roo.Template",
30 "name" : "applySubTemplate",
31 "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);",
33 "isConstructor" : false,
35 "memberOf" : "Roo.XTemplate",
44 "desc" : "of the template",
50 "desc" : "to apply to template",
56 "desc" : "(normaly the instance of this object)",
65 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
67 "isConstructor" : false,
69 "memberOf" : "Roo.XTemplate",
80 "name" : "insertFirst",
81 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
83 "isConstructor" : false,
85 "memberOf" : "Roo.Template",
93 "type" : "String/HTMLElement/Roo.Element",
94 "desc" : "The context element",
100 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
104 "name" : "returnElement",
106 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
113 "type" : "HTMLElement/Roo.Element",
114 "desc" : "The new node or Element"
119 "name" : "overwrite",
120 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
122 "isConstructor" : false,
124 "memberOf" : "Roo.Template",
132 "type" : "String/HTMLElement/Roo.Element",
133 "desc" : "The context element",
139 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
143 "name" : "returnElement",
145 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
152 "type" : "HTMLElement/Roo.Element",
153 "desc" : "The new node or Element"
158 "name" : "insertBefore",
159 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
161 "isConstructor" : false,
163 "memberOf" : "Roo.Template",
171 "type" : "String/HTMLElement/Roo.Element",
172 "desc" : "The context element",
178 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
182 "name" : "returnElement",
184 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
191 "type" : "HTMLElement/Roo.Element",
192 "desc" : "The new node or Element"
197 "name" : "applyTemplate",
198 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
200 "isConstructor" : false,
202 "memberOf" : "Roo.Template",
211 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
219 "desc" : "The HTML fragment"
225 "desc" : "Sets the HTML used as the template and optionally compiles it.",
227 "isConstructor" : false,
229 "memberOf" : "Roo.Template",
244 "desc" : "(optional) True to compile the template (defaults to undefined)",
251 "type" : "Roo.Template",
258 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
260 "isConstructor" : false,
262 "memberOf" : "Roo.Template",
270 "type" : "String/HTMLElement",
271 "desc" : "A DOM element or its id",
279 "name" : "insertAfter",
280 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
282 "isConstructor" : false,
284 "memberOf" : "Roo.Template",
292 "type" : "String/HTMLElement/Roo.Element",
293 "desc" : "The context element",
299 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
303 "name" : "returnElement",
305 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
312 "type" : "HTMLElement/Roo.Element",
313 "desc" : "The new node or Element"
319 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
321 "isConstructor" : false,
323 "memberOf" : "Roo.Template",
331 "type" : "String/HTMLElement/Roo.Element",
332 "desc" : "The context element",
338 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
342 "name" : "returnElement",
344 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
351 "type" : "HTMLElement/Roo.Element",
352 "desc" : "The new node or Element"
358 "desc" : "Alias for {@link #applyTemplate}",
360 "isConstructor" : false,
362 "memberOf" : "Roo.Template",