2 "name" : "Roo.Template",
13 "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>.",
14 "isSingleton" : false,
18 "isBuilderTop" : false,
19 "memberOf" : "Template",
28 "desc" : "- Configuration object.",
39 "desc" : "Called after the template has been loaded and complied (usually from a remove source)",
47 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
55 "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...",
63 "name" : "insertFirst",
65 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
66 "sig" : "(el, values, returnElement)",
70 "isConstructor" : false,
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" : "overwrite",
109 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
110 "sig" : "(el, values, returnElement)",
114 "isConstructor" : false,
125 "type" : "String/HTMLElement/Roo.Element",
126 "desc" : "The context element",
132 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
136 "name" : "returnElement",
138 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
145 "type" : "HTMLElement/Roo.Element",
146 "desc" : "The new node or Element"
151 "name" : "insertBefore",
153 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
154 "sig" : "(el, values, returnElement)",
158 "isConstructor" : false,
169 "type" : "String/HTMLElement/Roo.Element",
170 "desc" : "The context element",
176 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
180 "name" : "returnElement",
182 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
189 "type" : "HTMLElement/Roo.Element",
190 "desc" : "The new node or Element"
195 "name" : "applyTemplate",
197 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
202 "isConstructor" : false,
214 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
222 "desc" : "The HTML fragment"
229 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
230 "sig" : "()\n{\n\n}",
234 "isConstructor" : false,
246 "type" : "Roo.Template",
254 "desc" : "Sets the HTML used as the template and optionally compiles it.",
255 "sig" : "(html, compile)",
259 "isConstructor" : false,
277 "desc" : "(optional) True to compile the template (defaults to undefined)",
284 "type" : "Roo.Template",
292 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
297 "isConstructor" : false,
308 "type" : "String/HTMLElement",
309 "desc" : "A DOM element or its id",
316 "name" : "insertAfter",
318 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
319 "sig" : "(el, values, returnElement)",
323 "isConstructor" : false,
334 "type" : "String/HTMLElement/Roo.Element",
335 "desc" : "The context element",
341 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
345 "name" : "returnElement",
347 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
354 "type" : "HTMLElement/Roo.Element",
355 "desc" : "The new node or Element"
362 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
363 "sig" : "(el, values, returnElement)",
367 "isConstructor" : false,
378 "type" : "String/HTMLElement/Roo.Element",
379 "desc" : "The context element",
385 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
389 "name" : "returnElement",
391 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
398 "type" : "HTMLElement/Roo.Element",
399 "desc" : "The new node or Element"
406 "desc" : "Alias for {@link #applyTemplate}",
407 "sig" : "()\n{\n\n}",
411 "isConstructor" : false,