1 Ext.data.JsonP.Ext_Template({
15 "href": "Template2.html#Ext-Template-cfg-disableFormats",
16 "shortDoc": "true to disable format functions in the template. ...",
18 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/Template.js",
20 "name": "disableFormats",
21 "owner": "Ext.Template",
22 "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",
24 "html_filename": "Template2.html"
33 "href": "Base3.html#Ext-Base-method-addStatics",
34 "shortDoc": "Add / override static properties of this class. ...",
36 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
48 "doc": "<p>Add / override static properties of this class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.addStatics({\n someProperty: 'someValue', // My.cool.Class.someProperty = 'someValue'\n method1: function() { ... }, // My.cool.Class.method1 = function() { ... };\n method2: function() { ... } // My.cool.Class.method2 = function() { ... };\n});\n</code></pre>\n",
52 "doc": "<p>this</p>\n"
54 "html_filename": "Base3.html"
61 "href": "Template2.html#Ext-Template-method-append",
62 "shortDoc": "Applies the supplied values to the template and appends\nthe new node(s) to the specified el. ...",
64 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/Template.js",
70 "doc": "<p>The context element</p>\n",
74 "type": "Object/Array",
76 "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",
82 "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",
83 "name": "returnElement"
87 "owner": "Ext.Template",
88 "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 see the constructor.</p>\n\n",
91 "type": "HTMLElement/Ext.core.Element",
92 "doc": "<p>The new node or Element</p>\n"
94 "html_filename": "Template2.html"
101 "href": "Template2.html#Ext-Template-method-apply",
102 "shortDoc": "Alias for applyTemplate\nReturns an HTML fragment of this template with the specified values applied. ...",
104 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/Template.js",
108 "type": "Object/Array",
110 "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",
115 "owner": "Ext.Template",
116 "doc": "<p>Alias for <a href=\"#/api/Ext.Template-method-applyTemplate\" rel=\"Ext.Template-method-applyTemplate\" class=\"docClass\">applyTemplate</a>\nReturns an HTML fragment of this template with the specified <code>values</code> applied.</p>\n",
120 "doc": "<p>The HTML fragment</p>\n"
122 "html_filename": "Template2.html"
129 "href": "Template2.html#Ext-Template-method-applyTemplate",
130 "shortDoc": "Returns an HTML fragment of this template with the specified values applied. ...",
132 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/Template.js",
136 "type": "Object/Array",
138 "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",
142 "name": "applyTemplate",
143 "owner": "Ext.Template",
144 "doc": "<p>Returns an HTML fragment of this template with the specified values applied.</p>\n",
148 "doc": "<p>The HTML fragment</p>\n"
150 "html_filename": "Template2.html"
157 "href": "Base3.html#Ext-Base-method-callOverridden",
158 "shortDoc": "Call the original method that was previously overridden with Ext.Base.override\n\nExt.define('My.Cat', {\n constructo...",
160 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
164 "type": "Array/Arguments",
166 "doc": "<p>The arguments, either an array or the <code>arguments</code> object</p>\n",
170 "name": "callOverridden",
172 "doc": "<p>Call the original method that was previously overridden with <a href=\"#/api/Ext.Base-method-override\" rel=\"Ext.Base-method-override\" class=\"docClass\">Ext.Base.override</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n\n return this;\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n var instance = this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n\n return instance;\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n</code></pre>\n",
176 "doc": "<p>Returns the result after calling the overridden method</p>\n"
178 "html_filename": "Base3.html"
185 "href": "Base3.html#Ext-Base-method-callParent",
186 "shortDoc": "Call the parent's overridden method. ...",
188 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
192 "type": "Array/Arguments",
194 "doc": "<p>The arguments, either an array or the <code>arguments</code> object\nfrom the current method, for example: <code>this.callParent(arguments)</code></p>\n",
198 "name": "callParent",
200 "doc": "<p>Call the parent's overridden method. For example:</p>\n\n<pre><code>Ext.define('My.own.A', {\n constructor: function(test) {\n alert(test);\n }\n});\n\nExt.define('My.own.B', {\n extend: 'My.own.A',\n\n constructor: function(test) {\n alert(test);\n\n this.callParent([test + 1]);\n }\n});\n\nExt.define('My.own.C', {\n extend: 'My.own.B',\n\n constructor: function() {\n alert(\"Going to call parent's overriden constructor...\");\n\n this.callParent(arguments);\n }\n});\n\nvar a = new My.own.A(1); // alerts '1'\nvar b = new My.own.B(1); // alerts '1', then alerts '2'\nvar c = new My.own.C(2); // alerts \"Going to call parent's overriden constructor...\"\n // alerts '2', then alerts '3'\n</code></pre>\n",
204 "doc": "<p>Returns the result from the superclass' method</p>\n"
206 "html_filename": "Base3.html"
213 "href": "Template2.html#Ext-Template-method-compile",
214 "shortDoc": "Compiles the template into an internal function, eliminating the RegEx overhead. ...",
216 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/Template.js",
222 "owner": "Ext.Template",
223 "doc": "<p>Compiles the template into an internal function, eliminating the RegEx overhead.</p>\n",
226 "type": "Ext.Template",
227 "doc": "<p>this</p>\n"
229 "html_filename": "Template2.html"
236 "href": "Base3.html#Ext-Base-method-create",
237 "shortDoc": "Create a new instance of this Class. ...",
239 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
246 "doc": "<p>Create a new instance of this Class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.create({\n someConfig: true\n});\n</code></pre>\n\n<p>All parameters are passed to the constructor of the class.</p>\n",
250 "doc": "<p>the created instance.</p>\n"
252 "html_filename": "Base3.html"
259 "href": "Base3.html#Ext-Base-method-createAlias",
260 "shortDoc": "Create aliases for existing prototype methods. ...",
262 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
266 "type": "String/Object",
268 "doc": "<p>The new method name, or an object to set multiple aliases. See\n<a href=\"#/api/Ext.Function-method-flexSetter\" rel=\"Ext.Function-method-flexSetter\" class=\"docClass\">flexSetter</a></p>\n",
272 "type": "String/Object",
274 "doc": "<p>The original method name</p>\n",
278 "name": "createAlias",
280 "doc": "<p>Create aliases for existing prototype methods. Example:</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n method1: function() { ... },\n method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n method3: 'method1',\n method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -> test.method1()\n</code></pre>\n",
286 "html_filename": "Base3.html"
293 "href": "Template2.html#Ext-Template-method-from",
294 "shortDoc": "Creates a template from the passed element's value (display:none textarea, preferred) or innerHTML. ...",
296 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/Template.js",
300 "type": "String/HTMLElement",
302 "doc": "<p>A DOM element or its id</p>\n",
308 "doc": "<p>A configuration object</p>\n",
313 "owner": "Ext.Template",
314 "doc": "<p>Creates a template from the passed element's value (<i>display:none</i> textarea, preferred) or innerHTML.</p>\n",
317 "type": "Ext.Template",
318 "doc": "<p>The created template</p>\n"
320 "html_filename": "Template2.html"
327 "href": "Base3.html#Ext-Base-method-getName",
328 "shortDoc": "Get the current class' name in string format. ...",
330 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
337 "doc": "<p>Get the current class' name in string format.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n constructor: function() {\n alert(this.self.getName()); // alerts 'My.cool.Class'\n }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n</code></pre>\n",
341 "doc": "<p>className</p>\n"
343 "html_filename": "Base3.html"
350 "href": "Base3.html#Ext-Base-method-implement",
351 "shortDoc": "Add methods / properties to the prototype of this class. ...",
353 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
365 "doc": "<p>Add methods / properties to the prototype of this class.</p>\n\n<pre><code>Ext.define('My.awesome.Cat', {\n constructor: function() {\n ...\n }\n});\n\n My.awesome.Cat.implement({\n meow: function() {\n alert('Meowww...');\n }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n</code></pre>\n",
371 "html_filename": "Base3.html"
378 "href": "Base3.html#Ext-Base-method-initConfig",
379 "shortDoc": "Initialize configuration for this class. ...",
381 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
391 "name": "initConfig",
393 "doc": "<p>Initialize configuration for this class. a typical example:</p>\n\n<pre><code>Ext.define('My.awesome.Class', {\n // The default config\n config: {\n name: 'Awesome',\n isAwesome: true\n },\n\n constructor: function(config) {\n this.initConfig(config);\n\n return this;\n }\n});\n\nvar awesome = new My.awesome.Class({\n name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n</code></pre>\n",
397 "doc": "<p>mixins The mixin prototypes as key - value pairs</p>\n"
399 "html_filename": "Base3.html"
406 "href": "Template2.html#Ext-Template-method-insertAfter",
407 "shortDoc": "Applies the supplied values to the template and inserts the new node(s) after el. ...",
409 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/Template.js",
415 "doc": "<p>The context element</p>\n",
419 "type": "Object/Array",
421 "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",
427 "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",
428 "name": "returnElement"
431 "name": "insertAfter",
432 "owner": "Ext.Template",
433 "doc": "<p>Applies the supplied values to the template and inserts the new node(s) after el.</p>\n",
436 "type": "HTMLElement/Ext.core.Element",
437 "doc": "<p>The new node or Element</p>\n"
439 "html_filename": "Template2.html"
446 "href": "Template2.html#Ext-Template-method-insertBefore",
447 "shortDoc": "Applies the supplied values to the template and inserts the new node(s) before el. ...",
449 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/Template.js",
455 "doc": "<p>The context element</p>\n",
459 "type": "Object/Array",
461 "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",
467 "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",
468 "name": "returnElement"
471 "name": "insertBefore",
472 "owner": "Ext.Template",
473 "doc": "<p>Applies the supplied values to the template and inserts the new node(s) before el.</p>\n",
476 "type": "HTMLElement/Ext.core.Element",
477 "doc": "<p>The new node or Element</p>\n"
479 "html_filename": "Template2.html"
486 "href": "Template2.html#Ext-Template-method-insertFirst",
487 "shortDoc": "Applies the supplied values to the template and inserts the new node(s) as the first child of el. ...",
489 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/Template.js",
495 "doc": "<p>The context element</p>\n",
499 "type": "Object/Array",
501 "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",
507 "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",
508 "name": "returnElement"
511 "name": "insertFirst",
512 "owner": "Ext.Template",
513 "doc": "<p>Applies the supplied values to the template and inserts the new node(s) as the first child of el.</p>\n",
516 "type": "HTMLElement/Ext.core.Element",
517 "doc": "<p>The new node or Element</p>\n"
519 "html_filename": "Template2.html"
526 "href": "Base3.html#Ext-Base-method-override",
527 "shortDoc": "Override prototype members of this class. ...",
529 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
541 "doc": "<p>Override prototype members of this class. Overridden methods can be invoked via\n<a href=\"#/api/Ext.Base-method-callOverridden\" rel=\"Ext.Base-method-callOverridden\" class=\"docClass\">Ext.Base.callOverridden</a></p>\n\n<pre><code>Ext.define('My.Cat', {\n constructor: function() {\n alert(\"I'm a cat!\");\n\n return this;\n }\n});\n\nMy.Cat.override({\n constructor: function() {\n alert(\"I'm going to be a cat!\");\n\n var instance = this.callOverridden();\n\n alert(\"Meeeeoooowwww\");\n\n return instance;\n }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n // alerts \"I'm a cat!\"\n // alerts \"Meeeeoooowwww\"\n</code></pre>\n",
545 "doc": "<p>this</p>\n"
547 "html_filename": "Base3.html"
554 "href": "Template2.html#Ext-Template-method-overwrite",
555 "shortDoc": "Applies the supplied values to the template and overwrites the content of el with the new node(s). ...",
557 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/Template.js",
563 "doc": "<p>The context element</p>\n",
567 "type": "Object/Array",
569 "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",
575 "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",
576 "name": "returnElement"
580 "owner": "Ext.Template",
581 "doc": "<p>Applies the supplied values to the template and overwrites the content of el with the new node(s).</p>\n",
584 "type": "HTMLElement/Ext.core.Element",
585 "doc": "<p>The new node or Element</p>\n"
587 "html_filename": "Template2.html"
594 "href": "Template2.html#Ext-Template-method-set",
595 "shortDoc": "Sets the HTML used as the template and optionally compiles it. ...",
597 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/Template.js",
609 "doc": "<p>(optional) True to compile the template (defaults to undefined)</p>\n",
614 "owner": "Ext.Template",
615 "doc": "<p>Sets the HTML used as the template and optionally compiles it.</p>\n",
618 "type": "Ext.Template",
619 "doc": "<p>this</p>\n"
621 "html_filename": "Template2.html"
628 "href": "Base3.html#Ext-Base-method-statics",
629 "shortDoc": "Get the reference to the class from which this object was instantiated. ...",
631 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
638 "doc": "<p>Get the reference to the class from which this object was instantiated. Note that unlike <a href=\"#/api/Ext.Base-property-self\" rel=\"Ext.Base-property-self\" class=\"docClass\">Ext.Base.self</a>,\n<code>this.statics()</code> is scope-independent and it always returns the class from which it was called, regardless of what\n<code>this</code> points to during run-time</p>\n\n<pre><code>Ext.define('My.Cat', {\n statics: {\n totalCreated: 0,\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n var statics = this.statics();\n\n alert(statics.speciesName); // always equals to 'Cat' no matter what 'this' refers to\n // equivalent to: My.Cat.speciesName\n\n alert(this.self.speciesName); // dependent on 'this'\n\n statics.totalCreated++;\n\n return this;\n },\n\n clone: function() {\n var cloned = new this.self; // dependent on 'this'\n\n cloned.groupName = this.statics().speciesName; // equivalent to: My.Cat.speciesName\n\n return cloned;\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n },\n\n constructor: function() {\n this.callParent();\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\nalert(clone.groupName); // alerts 'Cat'\n\nalert(My.Cat.totalCreated); // alerts 3\n</code></pre>\n",
644 "html_filename": "Base3.html"
653 "tagname": "property",
654 "href": "Base3.html#Ext-Base-property-self",
655 "shortDoc": "Get the reference to the current class from which this object was instantiated. ...",
657 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
661 "doc": "<p>Get the reference to the current class from which this object was instantiated. Unlike <a href=\"#/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">Ext.Base.statics</a>,\n<code>this.self</code> is scope-dependent and it's meant to be used for dynamic inheritance. See <a href=\"#/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">Ext.Base.statics</a>\nfor a detailed comparison</p>\n\n<pre><code>Ext.define('My.Cat', {\n statics: {\n speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n },\n\n constructor: function() {\n alert(this.self.speciesName); / dependent on 'this'\n\n return this;\n },\n\n clone: function() {\n return new this.self();\n }\n});\n\n\nExt.define('My.SnowLeopard', {\n extend: 'My.Cat',\n statics: {\n speciesName: 'Snow Leopard' // My.SnowLeopard.speciesName = 'Snow Leopard'\n }\n});\n\nvar cat = new My.Cat(); // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone)); // alerts 'My.SnowLeopard'\n</code></pre>\n",
663 "html_filename": "Base3.html"
686 "href": "Template2.html#Ext-Template",
693 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/Template.js",
695 "alternateClassNames": [
698 "name": "Ext.Template",
699 "doc": "<p>Represents an HTML fragment template. Templates may be <a href=\"#/api/Ext.Template-method-compile\" rel=\"Ext.Template-method-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-method-compile\" rel=\"Ext.Template-method-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-method-compile\" rel=\"Ext.Template-method-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",
707 "html_filename": "Template2.html",
708 "extends": "Ext.Base"