2 "name" : "Roo.XTemplate",
9 "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 "isSingleton" : false,
14 "isBuilderTop" : false,
15 "memberOf" : "XTemplate",
28 "desc" : "Called after the template has been loaded and complied (usually from a remove source)",
29 "memberOf" : "Roo.Template",
36 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
37 "memberOf" : "Roo.Template",
44 "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...",
45 "memberOf" : "Roo.Template",
52 "name" : "applySubTemplate",
54 "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);",
55 "sig" : "(id, values, parent)",
59 "isConstructor" : false,
71 "desc" : "of the template",
77 "desc" : "to apply to template",
83 "desc" : "(normaly the instance of this object)",
92 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
97 "isConstructor" : false,
109 "name" : "insertFirst",
111 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
112 "sig" : "(el, values, returnElement)",
114 "memberOf" : "Roo.Template",
116 "isConstructor" : false,
127 "type" : "String/HTMLElement/Roo.Element",
128 "desc" : "The context element",
134 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
138 "name" : "returnElement",
140 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
147 "type" : "HTMLElement/Roo.Element",
148 "desc" : "The new node or Element"
153 "name" : "overwrite",
155 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
156 "sig" : "(el, values, returnElement)",
158 "memberOf" : "Roo.Template",
160 "isConstructor" : false,
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" : "insertBefore",
199 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
200 "sig" : "(el, values, returnElement)",
202 "memberOf" : "Roo.Template",
204 "isConstructor" : false,
215 "type" : "String/HTMLElement/Roo.Element",
216 "desc" : "The context element",
222 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
226 "name" : "returnElement",
228 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
235 "type" : "HTMLElement/Roo.Element",
236 "desc" : "The new node or Element"
241 "name" : "applyTemplate",
243 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
246 "memberOf" : "Roo.Template",
248 "isConstructor" : false,
260 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
268 "desc" : "The HTML fragment"
275 "desc" : "Sets the HTML used as the template and optionally compiles it.",
276 "sig" : "(html, compile)",
278 "memberOf" : "Roo.Template",
280 "isConstructor" : false,
298 "desc" : "(optional) True to compile the template (defaults to undefined)",
305 "type" : "Roo.Template",
313 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
316 "memberOf" : "Roo.Template",
318 "isConstructor" : false,
329 "type" : "String/HTMLElement",
330 "desc" : "A DOM element or its id",
337 "name" : "insertAfter",
339 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
340 "sig" : "(el, values, returnElement)",
342 "memberOf" : "Roo.Template",
344 "isConstructor" : false,
355 "type" : "String/HTMLElement/Roo.Element",
356 "desc" : "The context element",
362 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
366 "name" : "returnElement",
368 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
375 "type" : "HTMLElement/Roo.Element",
376 "desc" : "The new node or Element"
383 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
384 "sig" : "(el, values, returnElement)",
386 "memberOf" : "Roo.Template",
388 "isConstructor" : false,
399 "type" : "String/HTMLElement/Roo.Element",
400 "desc" : "The context element",
406 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
410 "name" : "returnElement",
412 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
419 "type" : "HTMLElement/Roo.Element",
420 "desc" : "The new node or Element"
427 "desc" : "Alias for {@link #applyTemplate}",
428 "sig" : "()\n{\n\n}",
430 "memberOf" : "Roo.Template",
432 "isConstructor" : false,