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>",
10 "memberOf" : "XTemplate",
23 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
24 "memberOf" : "Roo.Template",
31 "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...",
32 "memberOf" : "Roo.Template",
39 "name" : "applySubTemplate",
40 "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);",
42 "isConstructor" : false,
44 "memberOf" : "Roo.XTemplate",
53 "desc" : "of the template",
59 "desc" : "to apply to template",
65 "desc" : "(normaly the instance of this object)",
74 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
76 "isConstructor" : false,
78 "memberOf" : "Roo.XTemplate",
89 "name" : "insertFirst",
90 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
92 "isConstructor" : false,
94 "memberOf" : "Roo.Template",
102 "type" : "String/HTMLElement/Roo.Element",
103 "desc" : "The context element",
109 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
113 "name" : "returnElement",
115 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
122 "type" : "HTMLElement/Roo.Element",
123 "desc" : "The new node or Element"
128 "name" : "overwrite",
129 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
131 "isConstructor" : false,
133 "memberOf" : "Roo.Template",
141 "type" : "String/HTMLElement/Roo.Element",
142 "desc" : "The context element",
148 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
152 "name" : "returnElement",
154 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
161 "type" : "HTMLElement/Roo.Element",
162 "desc" : "The new node or Element"
167 "name" : "insertBefore",
168 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
170 "isConstructor" : false,
172 "memberOf" : "Roo.Template",
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" : "applyTemplate",
207 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
209 "isConstructor" : false,
211 "memberOf" : "Roo.Template",
220 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
228 "desc" : "The HTML fragment"
234 "desc" : "Sets the HTML used as the template and optionally compiles it.",
236 "isConstructor" : false,
238 "memberOf" : "Roo.Template",
253 "desc" : "(optional) True to compile the template (defaults to undefined)",
260 "type" : "Roo.Template",
267 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
269 "isConstructor" : false,
271 "memberOf" : "Roo.Template",
279 "type" : "String/HTMLElement",
280 "desc" : "A DOM element or its id",
288 "name" : "insertAfter",
289 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
291 "isConstructor" : false,
293 "memberOf" : "Roo.Template",
301 "type" : "String/HTMLElement/Roo.Element",
302 "desc" : "The context element",
308 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
312 "name" : "returnElement",
314 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
321 "type" : "HTMLElement/Roo.Element",
322 "desc" : "The new node or Element"
328 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
330 "isConstructor" : false,
332 "memberOf" : "Roo.Template",
340 "type" : "String/HTMLElement/Roo.Element",
341 "desc" : "The context element",
347 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
351 "name" : "returnElement",
353 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
360 "type" : "HTMLElement/Roo.Element",
361 "desc" : "The new node or Element"
367 "desc" : "Alias for {@link #applyTemplate}",
369 "isConstructor" : false,
371 "memberOf" : "Roo.Template",