2 "name" : "Roo.MasterTemplate",
7 "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.",
11 "memberOf" : "MasterTemplate",
24 "desc" : "Called after the template has been loaded and complied (usually from a remove source)",
25 "memberOf" : "Roo.Template"
30 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
31 "memberOf" : "Roo.Template"
36 "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...",
37 "memberOf" : "Roo.Template"
44 "desc" : "Applies all the passed values to a child template.",
45 "sig" : "(name, values, reset)",
49 "isConstructor" : false,
60 "type" : "String/Number",
61 "desc" : "(optional) The name or index of the child template",
67 "desc" : "The values to be applied to the template, this should be an array of objects.",
73 "desc" : "(optional) True to reset the template first",
80 "type" : "MasterTemplate",
88 "desc" : "Applies the passed values to a child template.",
89 "sig" : "(name, values)",
93 "isConstructor" : false,
104 "type" : "String/Number",
105 "desc" : "(optional) The name or index of the child template",
110 "type" : "Array/Object",
111 "desc" : "The values to be applied to the template",
118 "type" : "MasterTemplate",
126 "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');",
127 "sig" : "(el, config)",
131 "isConstructor" : false,
142 "type" : "String/HTMLElement",
158 "desc" : "Resets the template for reuse",
159 "sig" : "()\n{\n\n}",
163 "isConstructor" : false,
175 "type" : "MasterTemplate",
183 "desc" : "Alias for fill().",
184 "sig" : "()\n{\n\n}",
188 "isConstructor" : false,
200 "name" : "insertFirst",
202 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
203 "sig" : "(el, values, returnElement)",
205 "memberOf" : "Roo.Template",
207 "isConstructor" : false,
218 "type" : "String/HTMLElement/Roo.Element",
219 "desc" : "The context element",
225 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
229 "name" : "returnElement",
231 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
238 "type" : "HTMLElement/Roo.Element",
239 "desc" : "The new node or Element"
244 "name" : "overwrite",
246 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
247 "sig" : "(el, values, returnElement)",
249 "memberOf" : "Roo.Template",
251 "isConstructor" : false,
262 "type" : "String/HTMLElement/Roo.Element",
263 "desc" : "The context element",
269 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
273 "name" : "returnElement",
275 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
282 "type" : "HTMLElement/Roo.Element",
283 "desc" : "The new node or Element"
288 "name" : "insertBefore",
290 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
291 "sig" : "(el, values, returnElement)",
293 "memberOf" : "Roo.Template",
295 "isConstructor" : false,
306 "type" : "String/HTMLElement/Roo.Element",
307 "desc" : "The context element",
313 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
317 "name" : "returnElement",
319 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
326 "type" : "HTMLElement/Roo.Element",
327 "desc" : "The new node or Element"
332 "name" : "applyTemplate",
334 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
337 "memberOf" : "Roo.Template",
339 "isConstructor" : false,
351 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
359 "desc" : "The HTML fragment"
366 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
367 "sig" : "()\n{\n\n}",
369 "memberOf" : "Roo.Template",
371 "isConstructor" : false,
383 "type" : "Roo.Template",
391 "desc" : "Sets the HTML used as the template and optionally compiles it.",
392 "sig" : "(html, compile)",
394 "memberOf" : "Roo.Template",
396 "isConstructor" : false,
414 "desc" : "(optional) True to compile the template (defaults to undefined)",
421 "type" : "Roo.Template",
427 "name" : "insertAfter",
429 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
430 "sig" : "(el, values, returnElement)",
432 "memberOf" : "Roo.Template",
434 "isConstructor" : false,
445 "type" : "String/HTMLElement/Roo.Element",
446 "desc" : "The context element",
452 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
456 "name" : "returnElement",
458 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
465 "type" : "HTMLElement/Roo.Element",
466 "desc" : "The new node or Element"
473 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
474 "sig" : "(el, values, returnElement)",
476 "memberOf" : "Roo.Template",
478 "isConstructor" : false,
489 "type" : "String/HTMLElement/Roo.Element",
490 "desc" : "The context element",
496 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
500 "name" : "returnElement",
502 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
509 "type" : "HTMLElement/Roo.Element",
510 "desc" : "The new node or Element"
517 "desc" : "Alias for {@link #applyTemplate}",
518 "sig" : "()\n{\n\n}",
520 "memberOf" : "Roo.Template",
522 "isConstructor" : false,