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"
34 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
35 "memberOf" : "Roo.Template"
40 "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...",
41 "memberOf" : "Roo.Template"
46 "name" : "applySubTemplate",
48 "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);",
49 "sig" : "(id, values, parent)",
53 "isConstructor" : false,
65 "desc" : "of the template",
71 "desc" : "to apply to template",
77 "desc" : "(normaly the instance of this object)",
86 "desc" : "compile the template\n\nThis is not recursive, so I'm not sure how nested templates are really going to be handled..",
91 "isConstructor" : false,
103 "name" : "insertFirst",
105 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
106 "sig" : "(el, values, returnElement)",
108 "memberOf" : "Roo.Template",
110 "isConstructor" : false,
121 "type" : "String/HTMLElement/Roo.Element",
122 "desc" : "The context element",
128 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
132 "name" : "returnElement",
134 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
141 "type" : "HTMLElement/Roo.Element",
142 "desc" : "The new node or Element"
147 "name" : "overwrite",
149 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
150 "sig" : "(el, values, returnElement)",
152 "memberOf" : "Roo.Template",
154 "isConstructor" : false,
165 "type" : "String/HTMLElement/Roo.Element",
166 "desc" : "The context element",
172 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
176 "name" : "returnElement",
178 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
185 "type" : "HTMLElement/Roo.Element",
186 "desc" : "The new node or Element"
191 "name" : "insertBefore",
193 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
194 "sig" : "(el, values, returnElement)",
196 "memberOf" : "Roo.Template",
198 "isConstructor" : false,
209 "type" : "String/HTMLElement/Roo.Element",
210 "desc" : "The context element",
216 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
220 "name" : "returnElement",
222 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
229 "type" : "HTMLElement/Roo.Element",
230 "desc" : "The new node or Element"
235 "name" : "applyTemplate",
237 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
240 "memberOf" : "Roo.Template",
242 "isConstructor" : false,
254 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
262 "desc" : "The HTML fragment"
269 "desc" : "Sets the HTML used as the template and optionally compiles it.",
270 "sig" : "(html, compile)",
272 "memberOf" : "Roo.Template",
274 "isConstructor" : false,
292 "desc" : "(optional) True to compile the template (defaults to undefined)",
299 "type" : "Roo.Template",
307 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
310 "memberOf" : "Roo.Template",
312 "isConstructor" : false,
323 "type" : "String/HTMLElement",
324 "desc" : "A DOM element or its id",
331 "name" : "insertAfter",
333 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
334 "sig" : "(el, values, returnElement)",
336 "memberOf" : "Roo.Template",
338 "isConstructor" : false,
349 "type" : "String/HTMLElement/Roo.Element",
350 "desc" : "The context element",
356 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
360 "name" : "returnElement",
362 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
369 "type" : "HTMLElement/Roo.Element",
370 "desc" : "The new node or Element"
377 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
378 "sig" : "(el, values, returnElement)",
380 "memberOf" : "Roo.Template",
382 "isConstructor" : false,
393 "type" : "String/HTMLElement/Roo.Element",
394 "desc" : "The context element",
400 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
404 "name" : "returnElement",
406 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
413 "type" : "HTMLElement/Roo.Element",
414 "desc" : "The new node or Element"
421 "desc" : "Alias for {@link #applyTemplate}",
422 "sig" : "()\n{\n\n}",
424 "memberOf" : "Roo.Template",
426 "isConstructor" : false,