2 "name" : "Roo.Template",
5 "desc" : "Represents an HTML fragment template. Templates can be precompiled for greater performance.\nFor a list of available format functions, see {@link Roo.util.Format}.<br />\nUsage:\n<pre><code>\nvar t = new Roo.Template({\n html : '<div name=\"{id}\">' + \n '<span class=\"{cls}\">{name:trim} {someval:this.myformat}{value:ellipsis(10)}</span>' +\n '</div>',\n myformat: function (value, allValues) {\n return 'XX' + value;\n }\n});\nt.append('some-element', {id: 'myid', cls: 'myclass', name: 'foo', value: 'bar'});\n</code></pre>\nFor more information see this blog post with examples:\n <a href=\"http://www.cnitblog.com/seeyeah/archive/2011/12/30/38728.html/\">DomHelper\n - Create Elements using DOM, HTML fragments and Templates</a>.",
9 "memberOf" : "Template",
18 "desc" : "- Configuration object.",
28 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
29 "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 "name" : "insertFirst",
45 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
47 "isConstructor" : false,
49 "memberOf" : "Roo.Template",
57 "type" : "String/HTMLElement/Roo.Element",
58 "desc" : "The context element",
64 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
68 "name" : "returnElement",
70 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
77 "type" : "HTMLElement/Roo.Element",
78 "desc" : "The new node or Element"
84 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
86 "isConstructor" : false,
88 "memberOf" : "Roo.Template",
96 "type" : "String/HTMLElement/Roo.Element",
97 "desc" : "The context element",
103 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
107 "name" : "returnElement",
109 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
116 "type" : "HTMLElement/Roo.Element",
117 "desc" : "The new node or Element"
122 "name" : "insertBefore",
123 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
125 "isConstructor" : false,
127 "memberOf" : "Roo.Template",
135 "type" : "String/HTMLElement/Roo.Element",
136 "desc" : "The context element",
142 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
146 "name" : "returnElement",
148 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
155 "type" : "HTMLElement/Roo.Element",
156 "desc" : "The new node or Element"
161 "name" : "applyTemplate",
162 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
164 "isConstructor" : false,
166 "memberOf" : "Roo.Template",
175 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
183 "desc" : "The HTML fragment"
189 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
191 "isConstructor" : false,
193 "memberOf" : "Roo.Template",
203 "type" : "Roo.Template",
210 "desc" : "Sets the HTML used as the template and optionally compiles it.",
212 "isConstructor" : false,
214 "memberOf" : "Roo.Template",
229 "desc" : "(optional) True to compile the template (defaults to undefined)",
236 "type" : "Roo.Template",
243 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
245 "isConstructor" : false,
247 "memberOf" : "Roo.Template",
255 "type" : "String/HTMLElement",
256 "desc" : "A DOM element or its id",
264 "name" : "insertAfter",
265 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
267 "isConstructor" : false,
269 "memberOf" : "Roo.Template",
277 "type" : "String/HTMLElement/Roo.Element",
278 "desc" : "The context element",
284 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
288 "name" : "returnElement",
290 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
297 "type" : "HTMLElement/Roo.Element",
298 "desc" : "The new node or Element"
304 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
306 "isConstructor" : false,
308 "memberOf" : "Roo.Template",
316 "type" : "String/HTMLElement/Roo.Element",
317 "desc" : "The context element",
323 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
327 "name" : "returnElement",
329 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
336 "type" : "HTMLElement/Roo.Element",
337 "desc" : "The new node or Element"
343 "desc" : "Alias for {@link #applyTemplate}",
345 "isConstructor" : false,
347 "memberOf" : "Roo.Template",