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" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
27 "memberOf" : "Roo.Template",
33 "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...",
34 "memberOf" : "Roo.Template",
40 "name" : "insertFirst",
41 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
43 "isConstructor" : false,
45 "memberOf" : "Roo.Template",
53 "type" : "String/HTMLElement/Roo.Element",
54 "desc" : "The context element",
60 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
64 "name" : "returnElement",
66 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
73 "type" : "HTMLElement/Roo.Element",
74 "desc" : "The new node or Element"
80 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
82 "isConstructor" : false,
84 "memberOf" : "Roo.Template",
92 "type" : "String/HTMLElement/Roo.Element",
93 "desc" : "The context element",
99 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
103 "name" : "returnElement",
105 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
112 "type" : "HTMLElement/Roo.Element",
113 "desc" : "The new node or Element"
118 "name" : "insertBefore",
119 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
121 "isConstructor" : false,
123 "memberOf" : "Roo.Template",
131 "type" : "String/HTMLElement/Roo.Element",
132 "desc" : "The context element",
138 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
142 "name" : "returnElement",
144 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
151 "type" : "HTMLElement/Roo.Element",
152 "desc" : "The new node or Element"
157 "name" : "applyTemplate",
158 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
160 "isConstructor" : false,
162 "memberOf" : "Roo.Template",
171 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
179 "desc" : "The HTML fragment"
185 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
187 "isConstructor" : false,
189 "memberOf" : "Roo.Template",
198 "type" : "Roo.Template",
205 "desc" : "Sets the HTML used as the template and optionally compiles it.",
207 "isConstructor" : false,
209 "memberOf" : "Roo.Template",
224 "desc" : "(optional) True to compile the template (defaults to undefined)",
231 "type" : "Roo.Template",
238 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
240 "isConstructor" : false,
242 "memberOf" : "Roo.Template",
250 "type" : "String/HTMLElement",
251 "desc" : "A DOM element or its id",
258 "name" : "insertAfter",
259 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
261 "isConstructor" : false,
263 "memberOf" : "Roo.Template",
271 "type" : "String/HTMLElement/Roo.Element",
272 "desc" : "The context element",
278 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
282 "name" : "returnElement",
284 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
291 "type" : "HTMLElement/Roo.Element",
292 "desc" : "The new node or Element"
298 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
300 "isConstructor" : false,
302 "memberOf" : "Roo.Template",
310 "type" : "String/HTMLElement/Roo.Element",
311 "desc" : "The context element",
317 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
321 "name" : "returnElement",
323 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
330 "type" : "HTMLElement/Roo.Element",
331 "desc" : "The new node or Element"
337 "desc" : "Alias for {@link #applyTemplate}",
339 "isConstructor" : false,
341 "memberOf" : "Roo.Template",