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>.",
13 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
14 "memberOf" : "Roo.Template",
21 "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...",
22 "memberOf" : "Roo.Template",
29 "name" : "insertFirst",
30 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
32 "isConstructor" : false,
34 "memberOf" : "Roo.Template",
42 "type" : "String/HTMLElement/Roo.Element",
43 "desc" : "The context element",
49 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
53 "name" : "returnElement",
55 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
62 "type" : "HTMLElement/Roo.Element",
63 "desc" : "The new node or Element"
69 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
71 "isConstructor" : false,
73 "memberOf" : "Roo.Template",
81 "type" : "String/HTMLElement/Roo.Element",
82 "desc" : "The context element",
88 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
92 "name" : "returnElement",
94 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
101 "type" : "HTMLElement/Roo.Element",
102 "desc" : "The new node or Element"
107 "name" : "insertBefore",
108 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
110 "isConstructor" : false,
112 "memberOf" : "Roo.Template",
120 "type" : "String/HTMLElement/Roo.Element",
121 "desc" : "The context element",
127 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
131 "name" : "returnElement",
133 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
140 "type" : "HTMLElement/Roo.Element",
141 "desc" : "The new node or Element"
146 "name" : "applyTemplate",
147 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
149 "isConstructor" : false,
151 "memberOf" : "Roo.Template",
160 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
168 "desc" : "The HTML fragment"
174 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
176 "isConstructor" : false,
178 "memberOf" : "Roo.Template",
188 "type" : "Roo.Template",
195 "desc" : "Sets the HTML used as the template and optionally compiles it.",
197 "isConstructor" : false,
199 "memberOf" : "Roo.Template",
214 "desc" : "(optional) True to compile the template (defaults to undefined)",
221 "type" : "Roo.Template",
228 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
230 "isConstructor" : false,
232 "memberOf" : "Roo.Template",
240 "type" : "String/HTMLElement",
241 "desc" : "A DOM element or its id",
249 "name" : "insertAfter",
250 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
252 "isConstructor" : false,
254 "memberOf" : "Roo.Template",
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"
289 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
291 "isConstructor" : false,
293 "memberOf" : "Roo.Template",
301 "type" : "String/HTMLElement/Roo.Element",
302 "desc" : "The context element",
308 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
312 "name" : "returnElement",
314 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
321 "type" : "HTMLElement/Roo.Element",
322 "desc" : "The new node or Element"
328 "desc" : "Alias for {@link #applyTemplate}",
330 "isConstructor" : false,
332 "memberOf" : "Roo.Template",