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" : "Called after the template has been loaded and complied (usually from a remove source)",
24 "memberOf" : "Roo.Template"
29 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
30 "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"
41 "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);",
44 "sig" : "(id, values, parent)",
48 "isConstructor" : false,
60 "desc" : "of the template",
66 "desc" : "to apply to template",
72 "desc" : "(normaly the instance of this object)",
81 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
86 "isConstructor" : false,
98 "name" : "insertFirst",
100 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
101 "sig" : "(el, values, returnElement)",
103 "memberOf" : "Roo.Template",
105 "isConstructor" : false,
116 "type" : "String/HTMLElement/Roo.Element",
117 "desc" : "The context element",
123 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
127 "name" : "returnElement",
129 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
136 "type" : "HTMLElement/Roo.Element",
137 "desc" : "The new node or Element"
142 "name" : "overwrite",
144 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
145 "sig" : "(el, values, returnElement)",
147 "memberOf" : "Roo.Template",
149 "isConstructor" : false,
160 "type" : "String/HTMLElement/Roo.Element",
161 "desc" : "The context element",
167 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
171 "name" : "returnElement",
173 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
180 "type" : "HTMLElement/Roo.Element",
181 "desc" : "The new node or Element"
186 "name" : "insertBefore",
188 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
189 "sig" : "(el, values, returnElement)",
191 "memberOf" : "Roo.Template",
193 "isConstructor" : false,
204 "type" : "String/HTMLElement/Roo.Element",
205 "desc" : "The context element",
211 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
215 "name" : "returnElement",
217 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
224 "type" : "HTMLElement/Roo.Element",
225 "desc" : "The new node or Element"
230 "name" : "applyTemplate",
232 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
235 "memberOf" : "Roo.Template",
237 "isConstructor" : false,
249 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
257 "desc" : "The HTML fragment"
264 "desc" : "Sets the HTML used as the template and optionally compiles it.",
265 "sig" : "(html, compile)",
267 "memberOf" : "Roo.Template",
269 "isConstructor" : false,
287 "desc" : "(optional) True to compile the template (defaults to undefined)",
294 "type" : "Roo.Template",
302 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
305 "memberOf" : "Roo.Template",
307 "isConstructor" : false,
318 "type" : "String/HTMLElement",
319 "desc" : "A DOM element or its id",
326 "name" : "insertAfter",
328 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
329 "sig" : "(el, values, returnElement)",
331 "memberOf" : "Roo.Template",
333 "isConstructor" : false,
344 "type" : "String/HTMLElement/Roo.Element",
345 "desc" : "The context element",
351 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
355 "name" : "returnElement",
357 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
364 "type" : "HTMLElement/Roo.Element",
365 "desc" : "The new node or Element"
372 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
373 "sig" : "(el, values, returnElement)",
375 "memberOf" : "Roo.Template",
377 "isConstructor" : false,
388 "type" : "String/HTMLElement/Roo.Element",
389 "desc" : "The context element",
395 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
399 "name" : "returnElement",
401 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
408 "type" : "HTMLElement/Roo.Element",
409 "desc" : "The new node or Element"
416 "desc" : "Alias for {@link #applyTemplate}",
417 "sig" : "()\n{\n\n}",
419 "memberOf" : "Roo.Template",
421 "isConstructor" : false,