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" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
22 "memberOf" : "Roo.Template",
28 "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...",
29 "memberOf" : "Roo.Template",
35 "name" : "applySubTemplate",
36 "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);",
38 "isConstructor" : false,
40 "memberOf" : "Roo.XTemplate",
49 "desc" : "of the template",
55 "desc" : "to apply to template",
61 "desc" : "(normaly the instance of this object)",
69 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
71 "isConstructor" : false,
73 "memberOf" : "Roo.XTemplate",
82 "name" : "insertFirst",
83 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
85 "isConstructor" : false,
87 "memberOf" : "Roo.Template",
95 "type" : "String/HTMLElement/Roo.Element",
96 "desc" : "The context element",
102 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
106 "name" : "returnElement",
108 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
115 "type" : "HTMLElement/Roo.Element",
116 "desc" : "The new node or Element"
121 "name" : "overwrite",
122 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
124 "isConstructor" : false,
126 "memberOf" : "Roo.Template",
134 "type" : "String/HTMLElement/Roo.Element",
135 "desc" : "The context element",
141 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
145 "name" : "returnElement",
147 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
154 "type" : "HTMLElement/Roo.Element",
155 "desc" : "The new node or Element"
160 "name" : "insertBefore",
161 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
163 "isConstructor" : false,
165 "memberOf" : "Roo.Template",
173 "type" : "String/HTMLElement/Roo.Element",
174 "desc" : "The context element",
180 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
184 "name" : "returnElement",
186 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
193 "type" : "HTMLElement/Roo.Element",
194 "desc" : "The new node or Element"
199 "name" : "applyTemplate",
200 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
202 "isConstructor" : false,
204 "memberOf" : "Roo.Template",
213 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
221 "desc" : "The HTML fragment"
227 "desc" : "Sets the HTML used as the template and optionally compiles it.",
229 "isConstructor" : false,
231 "memberOf" : "Roo.Template",
246 "desc" : "(optional) True to compile the template (defaults to undefined)",
253 "type" : "Roo.Template",
260 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
262 "isConstructor" : false,
264 "memberOf" : "Roo.Template",
272 "type" : "String/HTMLElement",
273 "desc" : "A DOM element or its id",
280 "name" : "insertAfter",
281 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
283 "isConstructor" : false,
285 "memberOf" : "Roo.Template",
293 "type" : "String/HTMLElement/Roo.Element",
294 "desc" : "The context element",
300 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
304 "name" : "returnElement",
306 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
313 "type" : "HTMLElement/Roo.Element",
314 "desc" : "The new node or Element"
320 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
322 "isConstructor" : false,
324 "memberOf" : "Roo.Template",
332 "type" : "String/HTMLElement/Roo.Element",
333 "desc" : "The context element",
339 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
343 "name" : "returnElement",
345 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
352 "type" : "HTMLElement/Roo.Element",
353 "desc" : "The new node or Element"
359 "desc" : "Alias for {@link #applyTemplate}",
361 "isConstructor" : false,
363 "memberOf" : "Roo.Template",