2 "name" : "Roo.Template",
4 "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>.",
8 "memberOf" : "Template",
17 "desc" : "- Configuration object.",
26 "desc" : "Called after the template has been loaded and complied (usually from a remove source)",
27 "memberOf" : "Roo.Template",
33 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
34 "memberOf" : "Roo.Template",
40 "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...",
41 "memberOf" : "Roo.Template",
47 "name" : "insertFirst",
48 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
50 "isConstructor" : false,
52 "memberOf" : "Roo.Template",
60 "type" : "String/HTMLElement/Roo.Element",
61 "desc" : "The context element",
67 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
71 "name" : "returnElement",
73 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
80 "type" : "HTMLElement/Roo.Element",
81 "desc" : "The new node or Element"
87 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
89 "isConstructor" : false,
91 "memberOf" : "Roo.Template",
99 "type" : "String/HTMLElement/Roo.Element",
100 "desc" : "The context element",
106 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
110 "name" : "returnElement",
112 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
119 "type" : "HTMLElement/Roo.Element",
120 "desc" : "The new node or Element"
125 "name" : "insertBefore",
126 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
128 "isConstructor" : false,
130 "memberOf" : "Roo.Template",
138 "type" : "String/HTMLElement/Roo.Element",
139 "desc" : "The context element",
145 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
149 "name" : "returnElement",
151 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
158 "type" : "HTMLElement/Roo.Element",
159 "desc" : "The new node or Element"
164 "name" : "applyTemplate",
165 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
167 "isConstructor" : false,
169 "memberOf" : "Roo.Template",
178 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
186 "desc" : "The HTML fragment"
192 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
194 "isConstructor" : false,
196 "memberOf" : "Roo.Template",
205 "type" : "Roo.Template",
212 "desc" : "Sets the HTML used as the template and optionally compiles it.",
214 "isConstructor" : false,
216 "memberOf" : "Roo.Template",
231 "desc" : "(optional) True to compile the template (defaults to undefined)",
238 "type" : "Roo.Template",
245 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
247 "isConstructor" : false,
249 "memberOf" : "Roo.Template",
257 "type" : "String/HTMLElement",
258 "desc" : "A DOM element or its id",
265 "name" : "insertAfter",
266 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
268 "isConstructor" : false,
270 "memberOf" : "Roo.Template",
278 "type" : "String/HTMLElement/Roo.Element",
279 "desc" : "The context element",
285 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
289 "name" : "returnElement",
291 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
298 "type" : "HTMLElement/Roo.Element",
299 "desc" : "The new node or Element"
305 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
307 "isConstructor" : false,
309 "memberOf" : "Roo.Template",
317 "type" : "String/HTMLElement/Roo.Element",
318 "desc" : "The context element",
324 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
328 "name" : "returnElement",
330 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
337 "type" : "HTMLElement/Roo.Element",
338 "desc" : "The new node or Element"
344 "desc" : "Alias for {@link #applyTemplate}",
346 "isConstructor" : false,
348 "memberOf" : "Roo.Template",