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",
21 "desc" : "Called after the template has been loaded and complied (usually from a remove source)",
22 "memberOf" : "Roo.Template",
28 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
29 "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.",
45 "isConstructor" : false,
47 "memberOf" : "Roo.MasterTemplate",
55 "type" : "String/Number",
56 "desc" : "(optional) The name or index of the child template",
62 "desc" : "The values to be applied to the template, this should be an array of objects.",
68 "desc" : "(optional) True to reset the template first",
75 "type" : "MasterTemplate",
82 "desc" : "Applies the passed values to a child template.",
84 "isConstructor" : false,
86 "memberOf" : "Roo.MasterTemplate",
94 "type" : "String/Number",
95 "desc" : "(optional) The name or index of the child template",
100 "type" : "Array/Object",
101 "desc" : "The values to be applied to the template",
108 "type" : "MasterTemplate",
115 "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');",
117 "isConstructor" : false,
119 "memberOf" : "Roo.MasterTemplate",
127 "type" : "String/HTMLElement",
142 "desc" : "Resets the template for reuse",
144 "isConstructor" : false,
146 "memberOf" : "Roo.MasterTemplate",
155 "type" : "MasterTemplate",
162 "desc" : "Alias for fill().",
164 "isConstructor" : false,
166 "memberOf" : "Roo.MasterTemplate",
175 "name" : "insertFirst",
176 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
178 "isConstructor" : false,
180 "memberOf" : "Roo.Template",
188 "type" : "String/HTMLElement/Roo.Element",
189 "desc" : "The context element",
195 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
199 "name" : "returnElement",
201 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
208 "type" : "HTMLElement/Roo.Element",
209 "desc" : "The new node or Element"
214 "name" : "overwrite",
215 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
217 "isConstructor" : false,
219 "memberOf" : "Roo.Template",
227 "type" : "String/HTMLElement/Roo.Element",
228 "desc" : "The context element",
234 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
238 "name" : "returnElement",
240 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
247 "type" : "HTMLElement/Roo.Element",
248 "desc" : "The new node or Element"
253 "name" : "insertBefore",
254 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
256 "isConstructor" : false,
258 "memberOf" : "Roo.Template",
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" : "applyTemplate",
293 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
295 "isConstructor" : false,
297 "memberOf" : "Roo.Template",
306 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
314 "desc" : "The HTML fragment"
320 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
322 "isConstructor" : false,
324 "memberOf" : "Roo.Template",
333 "type" : "Roo.Template",
340 "desc" : "Sets the HTML used as the template and optionally compiles it.",
342 "isConstructor" : false,
344 "memberOf" : "Roo.Template",
359 "desc" : "(optional) True to compile the template (defaults to undefined)",
366 "type" : "Roo.Template",
372 "name" : "insertAfter",
373 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
375 "isConstructor" : false,
377 "memberOf" : "Roo.Template",
385 "type" : "String/HTMLElement/Roo.Element",
386 "desc" : "The context element",
392 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
396 "name" : "returnElement",
398 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
405 "type" : "HTMLElement/Roo.Element",
406 "desc" : "The new node or Element"
412 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
414 "isConstructor" : false,
416 "memberOf" : "Roo.Template",
424 "type" : "String/HTMLElement/Roo.Element",
425 "desc" : "The context element",
431 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
435 "name" : "returnElement",
437 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
444 "type" : "HTMLElement/Roo.Element",
445 "desc" : "The new node or Element"
451 "desc" : "Alias for {@link #applyTemplate}",
453 "isConstructor" : false,
455 "memberOf" : "Roo.Template",