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" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
22 "memberOf" : "Roo.Template",
28 "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...",
29 "memberOf" : "Roo.Template",
36 "desc" : "Applies all the passed values to a child template.",
38 "isConstructor" : false,
40 "memberOf" : "Roo.MasterTemplate",
48 "type" : "String/Number",
49 "desc" : "(optional) The name or index of the child template",
55 "desc" : "The values to be applied to the template, this should be an array of objects.",
61 "desc" : "(optional) True to reset the template first",
68 "type" : "MasterTemplate",
75 "desc" : "Applies the passed values to a child template.",
77 "isConstructor" : false,
79 "memberOf" : "Roo.MasterTemplate",
87 "type" : "String/Number",
88 "desc" : "(optional) The name or index of the child template",
93 "type" : "Array/Object",
94 "desc" : "The values to be applied to the template",
101 "type" : "MasterTemplate",
108 "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');",
110 "isConstructor" : false,
112 "memberOf" : "Roo.MasterTemplate",
120 "type" : "String/HTMLElement",
135 "desc" : "Resets the template for reuse",
137 "isConstructor" : false,
139 "memberOf" : "Roo.MasterTemplate",
148 "type" : "MasterTemplate",
155 "desc" : "Alias for fill().",
157 "isConstructor" : false,
159 "memberOf" : "Roo.MasterTemplate",
168 "name" : "insertFirst",
169 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
171 "isConstructor" : false,
173 "memberOf" : "Roo.Template",
181 "type" : "String/HTMLElement/Roo.Element",
182 "desc" : "The context element",
188 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
192 "name" : "returnElement",
194 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
201 "type" : "HTMLElement/Roo.Element",
202 "desc" : "The new node or Element"
207 "name" : "overwrite",
208 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
210 "isConstructor" : false,
212 "memberOf" : "Roo.Template",
220 "type" : "String/HTMLElement/Roo.Element",
221 "desc" : "The context element",
227 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
231 "name" : "returnElement",
233 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
240 "type" : "HTMLElement/Roo.Element",
241 "desc" : "The new node or Element"
246 "name" : "insertBefore",
247 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
249 "isConstructor" : false,
251 "memberOf" : "Roo.Template",
259 "type" : "String/HTMLElement/Roo.Element",
260 "desc" : "The context element",
266 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
270 "name" : "returnElement",
272 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
279 "type" : "HTMLElement/Roo.Element",
280 "desc" : "The new node or Element"
285 "name" : "applyTemplate",
286 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
288 "isConstructor" : false,
290 "memberOf" : "Roo.Template",
299 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
307 "desc" : "The HTML fragment"
313 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
315 "isConstructor" : false,
317 "memberOf" : "Roo.Template",
326 "type" : "Roo.Template",
333 "desc" : "Sets the HTML used as the template and optionally compiles it.",
335 "isConstructor" : false,
337 "memberOf" : "Roo.Template",
352 "desc" : "(optional) True to compile the template (defaults to undefined)",
359 "type" : "Roo.Template",
365 "name" : "insertAfter",
366 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
368 "isConstructor" : false,
370 "memberOf" : "Roo.Template",
378 "type" : "String/HTMLElement/Roo.Element",
379 "desc" : "The context element",
385 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
389 "name" : "returnElement",
391 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
398 "type" : "HTMLElement/Roo.Element",
399 "desc" : "The new node or Element"
405 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
407 "isConstructor" : false,
409 "memberOf" : "Roo.Template",
417 "type" : "String/HTMLElement/Roo.Element",
418 "desc" : "The context element",
424 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
428 "name" : "returnElement",
430 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
437 "type" : "HTMLElement/Roo.Element",
438 "desc" : "The new node or Element"
444 "desc" : "Alias for {@link #applyTemplate}",
446 "isConstructor" : false,
448 "memberOf" : "Roo.Template",