|
|
/*This file is part of Ext JS 3.4
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License UsageThis file may be used under the terms of the GNU General Public License version 3.0 aspublished by the Free Software Foundation and appearing in the file LICENSE included in thepackaging of this file.
Please review the following information to ensure the GNU General Public License version 3.0requirements will be met: http://www.gnu.org/copyleft/gpl.html.
If you are unsure which license is appropriate for your use, please contact the sales departmentat http://www.sencha.com/contact.
Build date: 2013-04-03 15:07:25*/Ext.data.JsonP.Ext_Container({"alternateClassNames":[],"aliases":{"widget":["container"]},"enum":null,"parentMixins":[],"tagname":"class","subclasses":["Ext.Panel","Ext.Toolbar","Ext.Viewport","Ext.menu.Menu"],"extends":"Ext.BoxComponent","uses":[],"html":"<div><pre class=\"hierarchy\"><h4>Hierarchy</h4><div class='subclass first-child'><a href='#!/api/Ext.util.Observable' rel='Ext.util.Observable' class='docClass'>Ext.util.Observable</a><div class='subclass '><a href='#!/api/Ext.Component' rel='Ext.Component' class='docClass'>Ext.Component</a><div class='subclass '><a href='#!/api/Ext.BoxComponent' rel='Ext.BoxComponent' class='docClass'>Ext.BoxComponent</a><div class='subclass '><strong>Ext.Container</strong></div></div></div></div><h4>Subclasses</h4><div class='dependency'><a href='#!/api/Ext.Panel' rel='Ext.Panel' class='docClass'>Ext.Panel</a></div><div class='dependency'><a href='#!/api/Ext.Toolbar' rel='Ext.Toolbar' class='docClass'>Ext.Toolbar</a></div><div class='dependency'><a href='#!/api/Ext.Viewport' rel='Ext.Viewport' class='docClass'>Ext.Viewport</a></div><div class='dependency'><a href='#!/api/Ext.menu.Menu' rel='Ext.menu.Menu' class='docClass'>Ext.menu.Menu</a></div><h4>Files</h4><div class='dependency'><a href='source/Container.html#Ext-Container' target='_blank'>Container.js</a></div></pre><div class='doc-contents'><p>Base class for any <a href=\"#!/api/Ext.BoxComponent\" rel=\"Ext.BoxComponent\" class=\"docClass\">Ext.BoxComponent</a> that may contain other Components. Containers handle the\nbasic behavior of containing items, namely adding, inserting and removing items.</p>\n\n\n\n\n<p>The most commonly used Container classes are <a href=\"#!/api/Ext.Panel\" rel=\"Ext.Panel\" class=\"docClass\">Ext.Panel</a>, <a href=\"#!/api/Ext.Window\" rel=\"Ext.Window\" class=\"docClass\">Ext.Window</a> and <a href=\"#!/api/Ext.TabPanel\" rel=\"Ext.TabPanel\" class=\"docClass\">Ext.TabPanel</a>.\nIf you do not need the capabilities offered by the aforementioned classes you can create a lightweight\nContainer to be encapsulated by an HTML element to your specifications by using the\n<code><b><a href=\"#!/api/Ext.Component-cfg-autoEl\" rel=\"Ext.Component-cfg-autoEl\" class=\"docClass\">autoEl</a></b></code> config option. This is a useful technique when creating\nembedded <a href=\"#!/api/Ext.layout.ColumnLayout\" rel=\"Ext.layout.ColumnLayout\" class=\"docClass\">column</a> layouts inside <a href=\"#!/api/Ext.form.FormPanel\" rel=\"Ext.form.FormPanel\" class=\"docClass\">FormPanels</a>\nfor example.</p>\n\n\n\n\n<p>The code below illustrates both how to explicitly create a Container, and how to implicitly\ncreate one using the <b><code>'container'</code></b> xtype:\n<pre><code>// explicitly create a Container\nvar embeddedColumns = new <a href=\"#!/api/Ext.Container\" rel=\"Ext.Container\" class=\"docClass\">Ext.Container</a>({\n autoEl: 'div', // This is the default\n layout: 'column',\n defaults: {\n // implicitly create Container by specifying xtype\n xtype: 'container',\n autoEl: 'div', // This is the default.\n layout: 'form',\n columnWidth: 0.5,\n style: {\n padding: '10px'\n }\n },\n// The two items below will be Ext.Containers, each encapsulated by a <DIV> element.\n items: [{\n items: {\n xtype: 'datefield',\n name: 'startDate',\n fieldLabel: 'Start date'\n }\n }, {\n items: {\n xtype: 'datefield',\n name: 'endDate',\n fieldLabel: 'End date'\n }\n }]\n});</code></pre></p>\n\n\n\n\n<p><u><b>Layout</b></u></p>\n\n\n<p>Container classes delegate the rendering of child Components to a layout\nmanager class which must be configured into the Container using the\n<code><b><a href=\"#!/api/Ext.Container-cfg-layout\" rel=\"Ext.Container-cfg-layout\" class=\"docClass\">layout</a></b></code> configuration property.</p>\n\n\n<p>When either specifying child <code><a href=\"#!/api/Ext.Container-property-items\" rel=\"Ext.Container-property-
|