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"
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"
48 "desc" : "Applies all the passed values to a child template.",
49 "sig" : "(name, values, reset)",
53 "isConstructor" : false,
64 "type" : "String/Number",
65 "desc" : "(optional) The name or index of the child template",
71 "desc" : "The values to be applied to the template, this should be an array of objects.",
77 "desc" : "(optional) True to reset the template first",
84 "type" : "MasterTemplate",
92 "desc" : "Applies the passed values to a child template.",
93 "sig" : "(name, values)",
97 "isConstructor" : false,
108 "type" : "String/Number",
109 "desc" : "(optional) The name or index of the child template",
114 "type" : "Array/Object",
115 "desc" : "The values to be applied to the template",
122 "type" : "MasterTemplate",
130 "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');",
131 "sig" : "(el, config)",
135 "isConstructor" : false,
146 "type" : "String/HTMLElement",
162 "desc" : "Resets the template for reuse",
163 "sig" : "()\n{\n\n}",
167 "isConstructor" : false,
179 "type" : "MasterTemplate",
187 "desc" : "Alias for fill().",
188 "sig" : "()\n{\n\n}",
192 "isConstructor" : false,
204 "name" : "insertFirst",
206 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
207 "sig" : "(el, values, returnElement)",
209 "memberOf" : "Roo.Template",
211 "isConstructor" : false,
222 "type" : "String/HTMLElement/Roo.Element",
223 "desc" : "The context element",
229 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
233 "name" : "returnElement",
235 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
242 "type" : "HTMLElement/Roo.Element",
243 "desc" : "The new node or Element"
248 "name" : "overwrite",
250 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
251 "sig" : "(el, values, returnElement)",
253 "memberOf" : "Roo.Template",
255 "isConstructor" : false,
266 "type" : "String/HTMLElement/Roo.Element",
267 "desc" : "The context element",
273 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
277 "name" : "returnElement",
279 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
286 "type" : "HTMLElement/Roo.Element",
287 "desc" : "The new node or Element"
292 "name" : "insertBefore",
294 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
295 "sig" : "(el, values, returnElement)",
297 "memberOf" : "Roo.Template",
299 "isConstructor" : false,
310 "type" : "String/HTMLElement/Roo.Element",
311 "desc" : "The context element",
317 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
321 "name" : "returnElement",
323 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
330 "type" : "HTMLElement/Roo.Element",
331 "desc" : "The new node or Element"
336 "name" : "applyTemplate",
338 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
341 "memberOf" : "Roo.Template",
343 "isConstructor" : false,
355 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
363 "desc" : "The HTML fragment"
370 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
371 "sig" : "()\n{\n\n}",
373 "memberOf" : "Roo.Template",
375 "isConstructor" : false,
387 "type" : "Roo.Template",
395 "desc" : "Sets the HTML used as the template and optionally compiles it.",
396 "sig" : "(html, compile)",
398 "memberOf" : "Roo.Template",
400 "isConstructor" : false,
418 "desc" : "(optional) True to compile the template (defaults to undefined)",
425 "type" : "Roo.Template",
431 "name" : "insertAfter",
433 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
434 "sig" : "(el, values, returnElement)",
436 "memberOf" : "Roo.Template",
438 "isConstructor" : false,
449 "type" : "String/HTMLElement/Roo.Element",
450 "desc" : "The context element",
456 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
460 "name" : "returnElement",
462 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
469 "type" : "HTMLElement/Roo.Element",
470 "desc" : "The new node or Element"
477 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
478 "sig" : "(el, values, returnElement)",
480 "memberOf" : "Roo.Template",
482 "isConstructor" : false,
493 "type" : "String/HTMLElement/Roo.Element",
494 "desc" : "The context element",
500 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
504 "name" : "returnElement",
506 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
513 "type" : "HTMLElement/Roo.Element",
514 "desc" : "The new node or Element"
521 "desc" : "Alias for {@link #applyTemplate}",
522 "sig" : "()\n{\n\n}",
524 "memberOf" : "Roo.Template",
526 "isConstructor" : false,