2 "name" : "Roo.MasterTemplate",
6 "desc" : "Provides a template that can have child templates. The syntax is:\n<pre><code>\nvar t = new Roo.MasterTemplate(\n\t'<select name=\"{name}\">',\n\t\t'<tpl name=\"options\"><option value=\"{value:trim}\">{text:ellipsis(10)}</option></tpl>',\n\t'</select>'\n);\nt.add('options', {value: 'foo', text: 'bar'});\n// or you can add multiple child elements in one shot\nt.addAll('options', [\n {value: 'foo', text: 'bar'},\n {value: 'foo2', text: 'bar2'},\n {value: 'foo3', text: 'bar3'}\n]);\n// then append, applying the master template values\nt.append('my-form', {name: 'my-select'});\n</code></pre>\nA name attribute for the child template is not required if you have only one child\ntemplate or you want to refer to them by index.",
14 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
15 "memberOf" : "Roo.Template",
22 "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...",
23 "memberOf" : "Roo.Template",
31 "desc" : "Applies all the passed values to a child template.",
33 "isConstructor" : false,
35 "memberOf" : "Roo.MasterTemplate",
43 "type" : "String/Number",
44 "desc" : "(optional) The name or index of the child template",
50 "desc" : "The values to be applied to the template, this should be an array of objects.",
56 "desc" : "(optional) True to reset the template first",
63 "type" : "MasterTemplate",
70 "desc" : "Applies the passed values to a child template.",
72 "isConstructor" : false,
74 "memberOf" : "Roo.MasterTemplate",
82 "type" : "String/Number",
83 "desc" : "(optional) The name or index of the child template",
88 "type" : "Array/Object",
89 "desc" : "The values to be applied to the template",
96 "type" : "MasterTemplate",
103 "desc" : "Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML. e.g.\nvar tpl = Roo.MasterTemplate.from('element-id');",
105 "isConstructor" : false,
107 "memberOf" : "Roo.MasterTemplate",
115 "type" : "String/HTMLElement",
131 "desc" : "Resets the template for reuse",
133 "isConstructor" : false,
135 "memberOf" : "Roo.MasterTemplate",
145 "type" : "MasterTemplate",
152 "desc" : "Alias for fill().",
154 "isConstructor" : false,
156 "memberOf" : "Roo.MasterTemplate",
167 "name" : "insertFirst",
168 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
170 "isConstructor" : false,
172 "memberOf" : "Roo.Template",
180 "type" : "String/HTMLElement/Roo.Element",
181 "desc" : "The context element",
187 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
191 "name" : "returnElement",
193 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
200 "type" : "HTMLElement/Roo.Element",
201 "desc" : "The new node or Element"
206 "name" : "overwrite",
207 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
209 "isConstructor" : false,
211 "memberOf" : "Roo.Template",
219 "type" : "String/HTMLElement/Roo.Element",
220 "desc" : "The context element",
226 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
230 "name" : "returnElement",
232 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
239 "type" : "HTMLElement/Roo.Element",
240 "desc" : "The new node or Element"
245 "name" : "insertBefore",
246 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
248 "isConstructor" : false,
250 "memberOf" : "Roo.Template",
258 "type" : "String/HTMLElement/Roo.Element",
259 "desc" : "The context element",
265 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
269 "name" : "returnElement",
271 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
278 "type" : "HTMLElement/Roo.Element",
279 "desc" : "The new node or Element"
284 "name" : "applyTemplate",
285 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
287 "isConstructor" : false,
289 "memberOf" : "Roo.Template",
298 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
306 "desc" : "The HTML fragment"
312 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
314 "isConstructor" : false,
316 "memberOf" : "Roo.Template",
326 "type" : "Roo.Template",
333 "desc" : "Sets the HTML used as the template and optionally compiles it.",
335 "isConstructor" : false,
337 "memberOf" : "Roo.Template",
352 "desc" : "(optional) True to compile the template (defaults to undefined)",
359 "type" : "Roo.Template",
365 "name" : "insertAfter",
366 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
368 "isConstructor" : false,
370 "memberOf" : "Roo.Template",
378 "type" : "String/HTMLElement/Roo.Element",
379 "desc" : "The context element",
385 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
389 "name" : "returnElement",
391 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
398 "type" : "HTMLElement/Roo.Element",
399 "desc" : "The new node or Element"
405 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
407 "isConstructor" : false,
409 "memberOf" : "Roo.Template",
417 "type" : "String/HTMLElement/Roo.Element",
418 "desc" : "The context element",
424 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
428 "name" : "returnElement",
430 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
437 "type" : "HTMLElement/Roo.Element",
438 "desc" : "The new node or Element"
444 "desc" : "Alias for {@link #applyTemplate}",
446 "isConstructor" : false,
448 "memberOf" : "Roo.Template",