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" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
24 "memberOf" : "Roo.Template",
31 "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...",
32 "memberOf" : "Roo.Template",
40 "desc" : "Applies all the passed values to a child template.",
42 "isConstructor" : false,
44 "memberOf" : "Roo.MasterTemplate",
52 "type" : "String/Number",
53 "desc" : "(optional) The name or index of the child template",
59 "desc" : "The values to be applied to the template, this should be an array of objects.",
65 "desc" : "(optional) True to reset the template first",
72 "type" : "MasterTemplate",
79 "desc" : "Applies the passed values to a child template.",
81 "isConstructor" : false,
83 "memberOf" : "Roo.MasterTemplate",
91 "type" : "String/Number",
92 "desc" : "(optional) The name or index of the child template",
97 "type" : "Array/Object",
98 "desc" : "The values to be applied to the template",
105 "type" : "MasterTemplate",
112 "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');",
114 "isConstructor" : false,
116 "memberOf" : "Roo.MasterTemplate",
124 "type" : "String/HTMLElement",
140 "desc" : "Resets the template for reuse",
142 "isConstructor" : false,
144 "memberOf" : "Roo.MasterTemplate",
154 "type" : "MasterTemplate",
161 "desc" : "Alias for fill().",
163 "isConstructor" : false,
165 "memberOf" : "Roo.MasterTemplate",
176 "name" : "insertFirst",
177 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
179 "isConstructor" : false,
181 "memberOf" : "Roo.Template",
189 "type" : "String/HTMLElement/Roo.Element",
190 "desc" : "The context element",
196 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
200 "name" : "returnElement",
202 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
209 "type" : "HTMLElement/Roo.Element",
210 "desc" : "The new node or Element"
215 "name" : "overwrite",
216 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
218 "isConstructor" : false,
220 "memberOf" : "Roo.Template",
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" : "insertBefore",
255 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
257 "isConstructor" : false,
259 "memberOf" : "Roo.Template",
267 "type" : "String/HTMLElement/Roo.Element",
268 "desc" : "The context element",
274 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
278 "name" : "returnElement",
280 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
287 "type" : "HTMLElement/Roo.Element",
288 "desc" : "The new node or Element"
293 "name" : "applyTemplate",
294 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
296 "isConstructor" : false,
298 "memberOf" : "Roo.Template",
307 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
315 "desc" : "The HTML fragment"
321 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
323 "isConstructor" : false,
325 "memberOf" : "Roo.Template",
335 "type" : "Roo.Template",
342 "desc" : "Sets the HTML used as the template and optionally compiles it.",
344 "isConstructor" : false,
346 "memberOf" : "Roo.Template",
361 "desc" : "(optional) True to compile the template (defaults to undefined)",
368 "type" : "Roo.Template",
374 "name" : "insertAfter",
375 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
377 "isConstructor" : false,
379 "memberOf" : "Roo.Template",
387 "type" : "String/HTMLElement/Roo.Element",
388 "desc" : "The context element",
394 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
398 "name" : "returnElement",
400 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
407 "type" : "HTMLElement/Roo.Element",
408 "desc" : "The new node or Element"
414 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
416 "isConstructor" : false,
418 "memberOf" : "Roo.Template",
426 "type" : "String/HTMLElement/Roo.Element",
427 "desc" : "The context element",
433 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
437 "name" : "returnElement",
439 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
446 "type" : "HTMLElement/Roo.Element",
447 "desc" : "The new node or Element"
453 "desc" : "Alias for {@link #applyTemplate}",
455 "isConstructor" : false,
457 "memberOf" : "Roo.Template",