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",
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.XTemplate",
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.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",
287 "name" : "insertAfter",
288 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
290 "isConstructor" : false,
292 "memberOf" : "Roo.Template",
300 "type" : "String/HTMLElement/Roo.Element",
301 "desc" : "The context element",
307 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
311 "name" : "returnElement",
313 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
320 "type" : "HTMLElement/Roo.Element",
321 "desc" : "The new node or Element"
327 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
329 "isConstructor" : false,
331 "memberOf" : "Roo.Template",
339 "type" : "String/HTMLElement/Roo.Element",
340 "desc" : "The context element",
346 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
350 "name" : "returnElement",
352 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
359 "type" : "HTMLElement/Roo.Element",
360 "desc" : "The new node or Element"
366 "desc" : "Alias for {@link #applyTemplate}",
368 "isConstructor" : false,
370 "memberOf" : "Roo.Template",