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)",
40 "memberOf" : "Roo.Template"
45 "desc" : "The HTML fragment or an array of fragments to join(\"\") or multiple arguments to join(\"\")",
46 "memberOf" : "Roo.Template"
51 "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...",
52 "memberOf" : "Roo.Template"
57 "name" : "insertFirst",
59 "desc" : "Applies the supplied values to the template and inserts the new node(s) as the first child of el.",
60 "sig" : "(el, values, returnElement)",
64 "isConstructor" : false,
75 "type" : "String/HTMLElement/Roo.Element",
76 "desc" : "The context element",
82 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
86 "name" : "returnElement",
88 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
95 "type" : "HTMLElement/Roo.Element",
96 "desc" : "The new node or Element"
101 "name" : "overwrite",
103 "desc" : "Applies the supplied values to the template and overwrites the content of el with the new node(s).",
104 "sig" : "(el, values, returnElement)",
108 "isConstructor" : false,
119 "type" : "String/HTMLElement/Roo.Element",
120 "desc" : "The context element",
126 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
130 "name" : "returnElement",
132 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
139 "type" : "HTMLElement/Roo.Element",
140 "desc" : "The new node or Element"
145 "name" : "insertBefore",
147 "desc" : "Applies the supplied values to the template and inserts the new node(s) before el.",
148 "sig" : "(el, values, returnElement)",
152 "isConstructor" : false,
163 "type" : "String/HTMLElement/Roo.Element",
164 "desc" : "The context element",
170 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
174 "name" : "returnElement",
176 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
183 "type" : "HTMLElement/Roo.Element",
184 "desc" : "The new node or Element"
189 "name" : "applyTemplate",
191 "desc" : "Returns an HTML fragment of this template with the specified values applied.",
196 "isConstructor" : false,
208 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
216 "desc" : "The HTML fragment"
223 "desc" : "Compiles the template into an internal function, eliminating the RegEx overhead.",
224 "sig" : "()\n{\n\n}",
228 "isConstructor" : false,
240 "type" : "Roo.Template",
248 "desc" : "Sets the HTML used as the template and optionally compiles it.",
249 "sig" : "(html, compile)",
253 "isConstructor" : false,
271 "desc" : "(optional) True to compile the template (defaults to undefined)",
278 "type" : "Roo.Template",
286 "desc" : "Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.",
291 "isConstructor" : false,
302 "type" : "String/HTMLElement",
303 "desc" : "A DOM element or its id",
310 "name" : "insertAfter",
312 "desc" : "Applies the supplied values to the template and inserts the new node(s) after el.",
313 "sig" : "(el, values, returnElement)",
317 "isConstructor" : false,
328 "type" : "String/HTMLElement/Roo.Element",
329 "desc" : "The context element",
335 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
339 "name" : "returnElement",
341 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
348 "type" : "HTMLElement/Roo.Element",
349 "desc" : "The new node or Element"
356 "desc" : "Applies the supplied values to the template and appends the new node(s) to el.",
357 "sig" : "(el, values, returnElement)",
361 "isConstructor" : false,
372 "type" : "String/HTMLElement/Roo.Element",
373 "desc" : "The context element",
379 "desc" : "The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})",
383 "name" : "returnElement",
385 "desc" : "(optional) true to return a Roo.Element (defaults to undefined)",
392 "type" : "HTMLElement/Roo.Element",
393 "desc" : "The new node or Element"
400 "desc" : "Alias for {@link #applyTemplate}",
401 "sig" : "()\n{\n\n}",
405 "isConstructor" : false,