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.",
28 "desc" : "Called after the template has been loaded and complied (usually from a remove source)",
34 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
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...",
46 "name" : "insertFirst",
48 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
49 "sig" : "(el, values, returnElement)",
53 "isConstructor" : false,
64 "type" : "String/HTMLElement/Roo.Element",
65 "desc" : "The context element",
71 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
75 "name" : "returnElement",
77 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
84 "type" : "HTMLElement/Roo.Element",
85 "desc" : "The new node or Element"
92 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
93 "sig" : "(el, values, returnElement)",
97 "isConstructor" : false,
108 "type" : "String/HTMLElement/Roo.Element",
109 "desc" : "The context element",
115 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
119 "name" : "returnElement",
121 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
128 "type" : "HTMLElement/Roo.Element",
129 "desc" : "The new node or Element"
134 "name" : "insertBefore",
136 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
137 "sig" : "(el, values, returnElement)",
141 "isConstructor" : false,
152 "type" : "String/HTMLElement/Roo.Element",
153 "desc" : "The context element",
159 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
163 "name" : "returnElement",
165 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
172 "type" : "HTMLElement/Roo.Element",
173 "desc" : "The new node or Element"
178 "name" : "applyTemplate",
180 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
185 "isConstructor" : false,
197 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
205 "desc" : "The HTML fragment"
212 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
213 "sig" : "()\n{\n\n}",
217 "isConstructor" : false,
229 "type" : "Roo.Template",
237 "desc" : "Sets the HTML used as the template and optionally compiles it.",
238 "sig" : "(html, compile)",
242 "isConstructor" : false,
260 "desc" : "(optional) True to compile the template (defaults to undefined)",
267 "type" : "Roo.Template",
275 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
280 "isConstructor" : false,
291 "type" : "String/HTMLElement",
292 "desc" : "A DOM element or its id",
299 "name" : "insertAfter",
301 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
302 "sig" : "(el, values, returnElement)",
306 "isConstructor" : false,
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"
345 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
346 "sig" : "(el, values, returnElement)",
350 "isConstructor" : false,
361 "type" : "String/HTMLElement/Roo.Element",
362 "desc" : "The context element",
368 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
372 "name" : "returnElement",
374 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
381 "type" : "HTMLElement/Roo.Element",
382 "desc" : "The new node or Element"
389 "desc" : "Alias for {@link #applyTemplate}",
390 "sig" : "()\n{\n\n}",
394 "isConstructor" : false,