2 "name" : "Roo.Template",
9 "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>.",
10 "isSingleton" : false,
13 "memberOf" : "Template",
22 "desc" : "- Configuration object.",
33 "desc" : "Called after the template has been loaded and complied (usually from a remove source)",
39 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
45 "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...",
51 "name" : "insertFirst",
53 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
54 "sig" : "(el, values, returnElement)",
58 "isConstructor" : false,
69 "type" : "String/HTMLElement/Roo.Element",
70 "desc" : "The context element",
76 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
80 "name" : "returnElement",
82 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
89 "type" : "HTMLElement/Roo.Element",
90 "desc" : "The new node or Element"
97 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
98 "sig" : "(el, values, returnElement)",
102 "isConstructor" : false,
113 "type" : "String/HTMLElement/Roo.Element",
114 "desc" : "The context element",
120 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
124 "name" : "returnElement",
126 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
133 "type" : "HTMLElement/Roo.Element",
134 "desc" : "The new node or Element"
139 "name" : "insertBefore",
141 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
142 "sig" : "(el, values, returnElement)",
146 "isConstructor" : false,
157 "type" : "String/HTMLElement/Roo.Element",
158 "desc" : "The context element",
164 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
168 "name" : "returnElement",
170 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
177 "type" : "HTMLElement/Roo.Element",
178 "desc" : "The new node or Element"
183 "name" : "applyTemplate",
185 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
190 "isConstructor" : false,
202 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
210 "desc" : "The HTML fragment"
217 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
218 "sig" : "()\n{\n\n}",
222 "isConstructor" : false,
234 "type" : "Roo.Template",
242 "desc" : "Sets the HTML used as the template and optionally compiles it.",
243 "sig" : "(html, compile)",
247 "isConstructor" : false,
265 "desc" : "(optional) True to compile the template (defaults to undefined)",
272 "type" : "Roo.Template",
280 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
285 "isConstructor" : false,
296 "type" : "String/HTMLElement",
297 "desc" : "A DOM element or its id",
304 "name" : "insertAfter",
306 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
307 "sig" : "(el, values, returnElement)",
311 "isConstructor" : false,
322 "type" : "String/HTMLElement/Roo.Element",
323 "desc" : "The context element",
329 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
333 "name" : "returnElement",
335 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
342 "type" : "HTMLElement/Roo.Element",
343 "desc" : "The new node or Element"
350 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
351 "sig" : "(el, values, returnElement)",
355 "isConstructor" : false,
366 "type" : "String/HTMLElement/Roo.Element",
367 "desc" : "The context element",
373 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
377 "name" : "returnElement",
379 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
386 "type" : "HTMLElement/Roo.Element",
387 "desc" : "The new node or Element"
394 "desc" : "Alias for {@link #applyTemplate}",
395 "sig" : "()\n{\n\n}",
399 "isConstructor" : false,