2 "name" : "Roo.MasterTemplate",
9 "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.",
10 "isSingleton" : false,
14 "isBuilderTop" : false,
15 "memberOf" : "MasterTemplate",
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",
54 "desc" : "Applies all the passed values to a child template.",
55 "sig" : "(name, values, reset)",
59 "isConstructor" : false,
70 "type" : "String/Number",
71 "desc" : "(optional) The name or index of the child template",
77 "desc" : "The values to be applied to the template, this should be an array of objects.",
83 "desc" : "(optional) True to reset the template first",
90 "type" : "MasterTemplate",
98 "desc" : "Applies the passed values to a child template.",
99 "sig" : "(name, values)",
103 "isConstructor" : false,
114 "type" : "String/Number",
115 "desc" : "(optional) The name or index of the child template",
120 "type" : "Array/Object",
121 "desc" : "The values to be applied to the template",
128 "type" : "MasterTemplate",
136 "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');",
137 "sig" : "(el, config)",
141 "isConstructor" : false,
152 "type" : "String/HTMLElement",
168 "desc" : "Resets the template for reuse",
169 "sig" : "()\n{\n\n}",
173 "isConstructor" : false,
185 "type" : "MasterTemplate",
193 "desc" : "Alias for fill().",
194 "sig" : "()\n{\n\n}",
198 "isConstructor" : false,
210 "name" : "insertFirst",
212 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
213 "sig" : "(el, values, returnElement)",
215 "memberOf" : "Roo.Template",
217 "isConstructor" : false,
228 "type" : "String/HTMLElement/Roo.Element",
229 "desc" : "The context element",
235 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
239 "name" : "returnElement",
241 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
248 "type" : "HTMLElement/Roo.Element",
249 "desc" : "The new node or Element"
254 "name" : "overwrite",
256 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
257 "sig" : "(el, values, returnElement)",
259 "memberOf" : "Roo.Template",
261 "isConstructor" : false,
272 "type" : "String/HTMLElement/Roo.Element",
273 "desc" : "The context element",
279 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
283 "name" : "returnElement",
285 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
292 "type" : "HTMLElement/Roo.Element",
293 "desc" : "The new node or Element"
298 "name" : "insertBefore",
300 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
301 "sig" : "(el, values, returnElement)",
303 "memberOf" : "Roo.Template",
305 "isConstructor" : false,
316 "type" : "String/HTMLElement/Roo.Element",
317 "desc" : "The context element",
323 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
327 "name" : "returnElement",
329 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
336 "type" : "HTMLElement/Roo.Element",
337 "desc" : "The new node or Element"
342 "name" : "applyTemplate",
344 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
347 "memberOf" : "Roo.Template",
349 "isConstructor" : false,
361 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
369 "desc" : "The HTML fragment"
376 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
377 "sig" : "()\n{\n\n}",
379 "memberOf" : "Roo.Template",
381 "isConstructor" : false,
393 "type" : "Roo.Template",
401 "desc" : "Sets the HTML used as the template and optionally compiles it.",
402 "sig" : "(html, compile)",
404 "memberOf" : "Roo.Template",
406 "isConstructor" : false,
424 "desc" : "(optional) True to compile the template (defaults to undefined)",
431 "type" : "Roo.Template",
437 "name" : "insertAfter",
439 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
440 "sig" : "(el, values, returnElement)",
442 "memberOf" : "Roo.Template",
444 "isConstructor" : false,
455 "type" : "String/HTMLElement/Roo.Element",
456 "desc" : "The context element",
462 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
466 "name" : "returnElement",
468 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
475 "type" : "HTMLElement/Roo.Element",
476 "desc" : "The new node or Element"
483 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
484 "sig" : "(el, values, returnElement)",
486 "memberOf" : "Roo.Template",
488 "isConstructor" : false,
499 "type" : "String/HTMLElement/Roo.Element",
500 "desc" : "The context element",
506 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
510 "name" : "returnElement",
512 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
519 "type" : "HTMLElement/Roo.Element",
520 "desc" : "The new node or Element"
527 "desc" : "Alias for {@link #applyTemplate}",
528 "sig" : "()\n{\n\n}",
530 "memberOf" : "Roo.Template",
532 "isConstructor" : false,