2 "name" : "Roo.XTemplate",
7 "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>",
11 "memberOf" : "XTemplate",
24 "desc" : "Called after the template has been loaded and complied (usually from a remove source)",
25 "memberOf" : "Roo.Template"
30 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
31 "memberOf" : "Roo.Template"
36 "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...",
37 "memberOf" : "Roo.Template"
42 "name" : "applySubTemplate",
44 "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 "sig" : "(id, values, parent)",
49 "isConstructor" : false,
61 "desc" : "of the template",
67 "desc" : "to apply to template",
73 "desc" : "(normaly the instance of this object)",
82 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
87 "isConstructor" : false,
99 "name" : "insertFirst",
101 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
102 "sig" : "(el, values, returnElement)",
104 "memberOf" : "Roo.Template",
106 "isConstructor" : false,
117 "type" : "String/HTMLElement/Roo.Element",
118 "desc" : "The context element",
124 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
128 "name" : "returnElement",
130 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
137 "type" : "HTMLElement/Roo.Element",
138 "desc" : "The new node or Element"
143 "name" : "overwrite",
145 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
146 "sig" : "(el, values, returnElement)",
148 "memberOf" : "Roo.Template",
150 "isConstructor" : false,
161 "type" : "String/HTMLElement/Roo.Element",
162 "desc" : "The context element",
168 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
172 "name" : "returnElement",
174 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
181 "type" : "HTMLElement/Roo.Element",
182 "desc" : "The new node or Element"
187 "name" : "insertBefore",
189 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
190 "sig" : "(el, values, returnElement)",
192 "memberOf" : "Roo.Template",
194 "isConstructor" : false,
205 "type" : "String/HTMLElement/Roo.Element",
206 "desc" : "The context element",
212 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
216 "name" : "returnElement",
218 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
225 "type" : "HTMLElement/Roo.Element",
226 "desc" : "The new node or Element"
231 "name" : "applyTemplate",
233 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
236 "memberOf" : "Roo.Template",
238 "isConstructor" : false,
250 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
258 "desc" : "The HTML fragment"
265 "desc" : "Sets the HTML used as the template and optionally compiles it.",
266 "sig" : "(html, compile)",
268 "memberOf" : "Roo.Template",
270 "isConstructor" : false,
288 "desc" : "(optional) True to compile the template (defaults to undefined)",
295 "type" : "Roo.Template",
303 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
306 "memberOf" : "Roo.Template",
308 "isConstructor" : false,
319 "type" : "String/HTMLElement",
320 "desc" : "A DOM element or its id",
327 "name" : "insertAfter",
329 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
330 "sig" : "(el, values, returnElement)",
332 "memberOf" : "Roo.Template",
334 "isConstructor" : false,
345 "type" : "String/HTMLElement/Roo.Element",
346 "desc" : "The context element",
352 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
356 "name" : "returnElement",
358 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
365 "type" : "HTMLElement/Roo.Element",
366 "desc" : "The new node or Element"
373 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
374 "sig" : "(el, values, returnElement)",
376 "memberOf" : "Roo.Template",
378 "isConstructor" : false,
389 "type" : "String/HTMLElement/Roo.Element",
390 "desc" : "The context element",
396 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
400 "name" : "returnElement",
402 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
409 "type" : "HTMLElement/Roo.Element",
410 "desc" : "The new node or Element"
417 "desc" : "Alias for {@link #applyTemplate}",
418 "sig" : "()\n{\n\n}",
420 "memberOf" : "Roo.Template",
422 "isConstructor" : false,