1 Ext.data.JsonP.Ext_Template({
3 "name": "Ext.Template",
4 "doc": "<p>Represents an HTML fragment template. Templates may be <a href=\"#/api/Ext.Template--compile\" rel=\"Ext.Template--compile\" class=\"docClass\">precompiled</a>\nfor greater performance.</p>\n\n\n<p>An instance of this class may be created by passing to the constructor either\na single argument, or multiple arguments:</p>\n\n<div class=\"mdetail-params\"><ul>\n<li><b>single argument</b> : String/Array\n<div class=\"sub-desc\">\nThe single argument may be either a String or an Array:<ul>\n<li><tt>String</tt> : </li>\n<pre><code>var t = new Ext.Template(\"<div>Hello {0}.</div>\");\nt.<a href=\"#/api/Ext.Template-method-append\" rel=\"Ext.Template-method-append\" class=\"docClass\">append</a>('some-element', ['foo']);\n </code></pre>\n<li><tt>Array</tt> : </li>\nAn Array will be combined with <code>join('')</code>.\n<pre><code>var t = new Ext.Template([\n '<div name=\"{id}\">',\n '<span class=\"{cls}\">{name:trim} {value:ellipsis(10)}</span>',\n '</div>',\n]);\nt.<a href=\"#/api/Ext.Template--compile\" rel=\"Ext.Template--compile\" class=\"docClass\">compile</a>();\nt.<a href=\"#/api/Ext.Template-method-append\" rel=\"Ext.Template-method-append\" class=\"docClass\">append</a>('some-element', {id: 'myid', cls: 'myclass', name: 'foo', value: 'bar'});\n </code></pre>\n</ul></div></li>\n<li><b>multiple arguments</b> : String, Object, Array, ...\n<div class=\"sub-desc\">\nMultiple arguments will be combined with <code>join('')</code>.\n<pre><code>var t = new Ext.Template(\n '<div name=\"{id}\">',\n '<span class=\"{cls}\">{name} {value}</span>',\n '</div>',\n // a configuration object:\n {\n compiled: true, // <a href=\"#/api/Ext.Template--compile\" rel=\"Ext.Template--compile\" class=\"docClass\">compile</a> immediately\n }\n);\n </code></pre>\n<p><b>Notes</b>:</p>\n<div class=\"mdetail-params\"><ul>\n<li>For a list of available format functions, see <a href=\"#/api/Ext.util.Format\" rel=\"Ext.util.Format\" class=\"docClass\">Ext.util.Format</a>.</li>\n<li><code>disableFormats</code> reduces <code><a href=\"#/api/Ext.Template-method-apply\" rel=\"Ext.Template-method-apply\" class=\"docClass\">apply</a></code> time\nwhen no formatting is required.</li>\n</ul></div>\n</div></li>\n</ul></div>\n\n",
9 "alternateClassNames": [
20 "name": "disableFormats",
21 "member": "Ext.Template",
23 "doc": "<p>true to disable format functions in the template. If the template doesn't contain format functions, setting\ndisableFormats to true will reduce apply time (defaults to false)</p>\n",
25 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js",
27 "html_filename": "Template2.html",
28 "href": "Template2.html#Ext-Template-cfg-disableFormats",
29 "shortDoc": "true to disable format functions in the template. If the template doesn't contain format functions, setting\ndisableFo..."
36 "member": "Ext.Template",
37 "doc": "<p>Applies the supplied <code>values</code> to the template and appends\nthe new node(s) to the specified <code>el</code>.</p>\n\n<p>For example usage <a href=\"#/api/Ext.Template--Template\" rel=\"Ext.Template--Template\" class=\"docClass\">see the constructor</a>.</p>\n\n",
42 "doc": "<p>The context element</p>\n",
46 "type": "Object/Array",
48 "doc": "<p>The template values. Can be an array if the params are numeric (i.e. <code>{0}</code>)\nor an object (i.e. <code>{foo: 'bar'}</code>).</p>\n",
53 "name": "returnElement",
54 "doc": "<p>(optional) true to return an <a href=\"#/api/Ext.core.Element\" rel=\"Ext.core.Element\" class=\"docClass\">Ext.core.Element</a> (defaults to undefined)</p>\n",
59 "type": "HTMLElement/Ext.core.Element",
60 "doc": "<p>The new node or Element</p>\n"
64 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js",
66 "html_filename": "Template2.html",
67 "href": "Template2.html#Ext-Template-method-append",
68 "shortDoc": "Applies the supplied values to the template and appends\nthe new node(s) to the specified el.\n\nFor example usage see t..."
73 "member": "Ext.Template",
74 "doc": "<p>Alias for <a href=\"#/api/Ext.Template--applyTemplate\" rel=\"Ext.Template--applyTemplate\" class=\"docClass\">applyTemplate</a>\nReturns an HTML fragment of this template with the specified <code>values</code> applied.</p>\n",
77 "type": "Object/Array",
79 "doc": "<p>The template values. Can be an array if the params are numeric (i.e. <code>{0}</code>)\nor an object (i.e. <code>{foo: 'bar'}</code>).</p>\n",
85 "doc": "<p>The HTML fragment</p>\n"
89 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js",
91 "html_filename": "Template2.html",
92 "href": "Template2.html#Ext-Template-method-apply",
93 "shortDoc": "<p>Alias for <a href=\"#/api/Ext.Template--applyTemplate\" rel=\"Ext.Template--applyTemplate\" class=\"docClass\">applyTemplate</a>\nReturns an HTML fragment of this template with the specified <code>values</code> applied.</p>\n"
98 "member": "Ext.Template",
99 "doc": "<p>Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.</p>\n",
102 "type": "String/HTMLElement",
104 "doc": "<p>A DOM element or its id</p>\n",
110 "doc": "<p>A configuration object</p>\n",
115 "type": "Ext.Template",
116 "doc": "<p>The created template</p>\n"
120 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js",
122 "html_filename": "Template2.html",
123 "href": "Template2.html#Ext-Template-method-from",
124 "shortDoc": "<p>Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.</p>\n"
128 "name": "insertAfter",
129 "member": "Ext.Template",
130 "doc": "<p>Applies the supplied values to the template and inserts the new node(s) after el.</p>\n",
135 "doc": "<p>The context element</p>\n",
139 "type": "Object/Array",
141 "doc": "<p>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</p>\n",
146 "name": "returnElement",
147 "doc": "<p>(optional) true to return a <a href=\"#/api/Ext.core.Element\" rel=\"Ext.core.Element\" class=\"docClass\">Ext.core.Element</a> (defaults to undefined)</p>\n",
152 "type": "HTMLElement/Ext.core.Element",
153 "doc": "<p>The new node or Element</p>\n"
157 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js",
159 "html_filename": "Template2.html",
160 "href": "Template2.html#Ext-Template-method-insertAfter",
161 "shortDoc": "<p>Applies the supplied values to the template and inserts the new node(s) after el.</p>\n"
165 "name": "insertBefore",
166 "member": "Ext.Template",
167 "doc": "<p>Applies the supplied values to the template and inserts the new node(s) before el.</p>\n",
172 "doc": "<p>The context element</p>\n",
176 "type": "Object/Array",
178 "doc": "<p>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</p>\n",
183 "name": "returnElement",
184 "doc": "<p>(optional) true to return a <a href=\"#/api/Ext.core.Element\" rel=\"Ext.core.Element\" class=\"docClass\">Ext.core.Element</a> (defaults to undefined)</p>\n",
189 "type": "HTMLElement/Ext.core.Element",
190 "doc": "<p>The new node or Element</p>\n"
194 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js",
196 "html_filename": "Template2.html",
197 "href": "Template2.html#Ext-Template-method-insertBefore",
198 "shortDoc": "<p>Applies the supplied values to the template and inserts the new node(s) before el.</p>\n"
202 "name": "insertFirst",
203 "member": "Ext.Template",
204 "doc": "<p>Applies the supplied values to the template and inserts the new node(s) as the first child of el.</p>\n",
209 "doc": "<p>The context element</p>\n",
213 "type": "Object/Array",
215 "doc": "<p>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</p>\n",
220 "name": "returnElement",
221 "doc": "<p>(optional) true to return a <a href=\"#/api/Ext.core.Element\" rel=\"Ext.core.Element\" class=\"docClass\">Ext.core.Element</a> (defaults to undefined)</p>\n",
226 "type": "HTMLElement/Ext.core.Element",
227 "doc": "<p>The new node or Element</p>\n"
231 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js",
233 "html_filename": "Template2.html",
234 "href": "Template2.html#Ext-Template-method-insertFirst",
235 "shortDoc": "<p>Applies the supplied values to the template and inserts the new node(s) as the first child of el.</p>\n"
240 "member": "Ext.Template",
241 "doc": "<p>Applies the supplied values to the template and overwrites the content of el with the new node(s).</p>\n",
246 "doc": "<p>The context element</p>\n",
250 "type": "Object/Array",
252 "doc": "<p>The template values. Can be an array if your params are numeric (i.e. {0}) or an object (i.e. {foo: 'bar'})</p>\n",
257 "name": "returnElement",
258 "doc": "<p>(optional) true to return a <a href=\"#/api/Ext.core.Element\" rel=\"Ext.core.Element\" class=\"docClass\">Ext.core.Element</a> (defaults to undefined)</p>\n",
263 "type": "HTMLElement/Ext.core.Element",
264 "doc": "<p>The new node or Element</p>\n"
268 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js",
270 "html_filename": "Template2.html",
271 "href": "Template2.html#Ext-Template-method-overwrite",
272 "shortDoc": "<p>Applies the supplied values to the template and overwrites the content of el with the new node(s).</p>\n"
277 "member": "Ext.Template",
278 "doc": "<p>Sets the HTML used as the template and optionally compiles it.</p>\n",
289 "doc": "<p>(optional) True to compile the template (defaults to undefined)</p>\n",
294 "type": "Ext.Template",
295 "doc": "<p>this</p>\n"
299 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js",
301 "html_filename": "Template2.html",
302 "href": "Template2.html#Ext-Template-method-set",
303 "shortDoc": "<p>Sets the HTML used as the template and optionally compiles it.</p>\n"
312 "filename": "/Users/nick/Projects/sencha/SDK/platform/src/Template.js",
314 "html_filename": "Template2.html",
315 "href": "Template2.html#Ext-Template",