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.",
10 "memberOf" : "MasterTemplate",
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"
43 "desc" : "Applies all the passed values to a child template.",
44 "sig" : "(name, values, reset)",
48 "isConstructor" : false,
59 "type" : "String/Number",
60 "desc" : "(optional) The name or index of the child template",
66 "desc" : "The values to be applied to the template, this should be an array of objects.",
72 "desc" : "(optional) True to reset the template first",
79 "type" : "MasterTemplate",
87 "desc" : "Applies the passed values to a child template.",
88 "sig" : "(name, values)",
92 "isConstructor" : false,
103 "type" : "String/Number",
104 "desc" : "(optional) The name or index of the child template",
109 "type" : "Array/Object",
110 "desc" : "The values to be applied to the template",
117 "type" : "MasterTemplate",
125 "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');",
126 "sig" : "(el, config)",
130 "isConstructor" : false,
141 "type" : "String/HTMLElement",
157 "desc" : "Resets the template for reuse",
158 "sig" : "()\n{\n\n}",
162 "isConstructor" : false,
174 "type" : "MasterTemplate",
182 "desc" : "Alias for fill().",
183 "sig" : "()\n{\n\n}",
187 "isConstructor" : false,
199 "name" : "insertFirst",
201 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
202 "sig" : "(el, values, returnElement)",
204 "memberOf" : "Roo.Template",
206 "isConstructor" : false,
217 "type" : "String/HTMLElement/Roo.Element",
218 "desc" : "The context element",
224 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
228 "name" : "returnElement",
230 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
237 "type" : "HTMLElement/Roo.Element",
238 "desc" : "The new node or Element"
243 "name" : "overwrite",
245 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
246 "sig" : "(el, values, returnElement)",
248 "memberOf" : "Roo.Template",
250 "isConstructor" : false,
261 "type" : "String/HTMLElement/Roo.Element",
262 "desc" : "The context element",
268 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
272 "name" : "returnElement",
274 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
281 "type" : "HTMLElement/Roo.Element",
282 "desc" : "The new node or Element"
287 "name" : "insertBefore",
289 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
290 "sig" : "(el, values, returnElement)",
292 "memberOf" : "Roo.Template",
294 "isConstructor" : false,
305 "type" : "String/HTMLElement/Roo.Element",
306 "desc" : "The context element",
312 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
316 "name" : "returnElement",
318 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
325 "type" : "HTMLElement/Roo.Element",
326 "desc" : "The new node or Element"
331 "name" : "applyTemplate",
333 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
336 "memberOf" : "Roo.Template",
338 "isConstructor" : false,
350 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
358 "desc" : "The HTML fragment"
365 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
366 "sig" : "()\n{\n\n}",
368 "memberOf" : "Roo.Template",
370 "isConstructor" : false,
382 "type" : "Roo.Template",
390 "desc" : "Sets the HTML used as the template and optionally compiles it.",
391 "sig" : "(html, compile)",
393 "memberOf" : "Roo.Template",
395 "isConstructor" : false,
413 "desc" : "(optional) True to compile the template (defaults to undefined)",
420 "type" : "Roo.Template",
426 "name" : "insertAfter",
428 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
429 "sig" : "(el, values, returnElement)",
431 "memberOf" : "Roo.Template",
433 "isConstructor" : false,
444 "type" : "String/HTMLElement/Roo.Element",
445 "desc" : "The context element",
451 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
455 "name" : "returnElement",
457 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
464 "type" : "HTMLElement/Roo.Element",
465 "desc" : "The new node or Element"
472 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
473 "sig" : "(el, values, returnElement)",
475 "memberOf" : "Roo.Template",
477 "isConstructor" : false,
488 "type" : "String/HTMLElement/Roo.Element",
489 "desc" : "The context element",
495 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
499 "name" : "returnElement",
501 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
508 "type" : "HTMLElement/Roo.Element",
509 "desc" : "The new node or Element"
516 "desc" : "Alias for {@link #applyTemplate}",
517 "sig" : "()\n{\n\n}",
519 "memberOf" : "Roo.Template",
521 "isConstructor" : false,