|
|
/*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_BoxComponent({"alternateClassNames":[],"aliases":{"widget":["box"]},"enum":null,"parentMixins":[],"tagname":"class","subclasses":["Ext.Button","Ext.Container","Ext.DataView","Ext.FlashComponent","Ext.ProgressBar","Ext.Spacer","Ext.Toolbar.Item","Ext.form.Field","Ext.form.Label","Ext.slider.MultiSlider"],"extends":"Ext.Component","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 '><strong>Ext.BoxComponent</strong></div></div></div><h4>Subclasses</h4><div class='dependency'><a href='#!/api/Ext.Button' rel='Ext.Button' class='docClass'>Ext.Button</a></div><div class='dependency'><a href='#!/api/Ext.Container' rel='Ext.Container' class='docClass'>Ext.Container</a></div><div class='dependency'><a href='#!/api/Ext.DataView' rel='Ext.DataView' class='docClass'>Ext.DataView</a></div><div class='dependency'><a href='#!/api/Ext.FlashComponent' rel='Ext.FlashComponent' class='docClass'>Ext.FlashComponent</a></div><div class='dependency'><a href='#!/api/Ext.ProgressBar' rel='Ext.ProgressBar' class='docClass'>Ext.ProgressBar</a></div><div class='dependency'><a href='#!/api/Ext.Spacer' rel='Ext.Spacer' class='docClass'>Ext.Spacer</a></div><div class='dependency'><a href='#!/api/Ext.Toolbar.Item' rel='Ext.Toolbar.Item' class='docClass'>Ext.Toolbar.Item</a></div><div class='dependency'><a href='#!/api/Ext.form.Field' rel='Ext.form.Field' class='docClass'>Ext.form.Field</a></div><div class='dependency'><a href='#!/api/Ext.form.Label' rel='Ext.form.Label' class='docClass'>Ext.form.Label</a></div><div class='dependency'><a href='#!/api/Ext.slider.MultiSlider' rel='Ext.slider.MultiSlider' class='docClass'>Ext.slider.MultiSlider</a></div><h4>Files</h4><div class='dependency'><a href='source/BoxComponent.html#Ext-BoxComponent' target='_blank'>BoxComponent.js</a></div></pre><div class='doc-contents'><p>Base class for any <a href=\"#!/api/Ext.Component\" rel=\"Ext.Component\" class=\"docClass\">Component</a> that is to be sized as a box, using width and height.</p>\n\n\n<p>BoxComponent provides automatic box model adjustments for sizing and positioning and will work correctly\nwithin the Component rendering model.</p>\n\n\n<p>A BoxComponent may be created as a custom Component which encapsulates any HTML element, either a pre-existing\nelement, or one that is created to your specifications at render time. Usually, to participate in layouts,\na Component will need to be a <b>Box</b>Component in order to have its width and height managed.</p>\n\n\n<p>To use a pre-existing element as a BoxComponent, configure it so that you preset the <b>el</b> property to the\nelement to reference:\n<pre><code>var pageHeader = new <a href=\"#!/api/Ext.BoxComponent\" rel=\"Ext.BoxComponent\" class=\"docClass\">Ext.BoxComponent</a>({\n el: 'my-header-div'\n});</code></pre>\nThis may then be <a href=\"#!/api/Ext.Container-event-add\" rel=\"Ext.Container-event-add\" class=\"docClass\">added</a> to a <a href=\"#!/api/Ext.Container\" rel=\"Ext.Container\" class=\"docClass\">Container</a> as a child item.</p>\n\n\n<p>To create a BoxComponent based around a HTML element to be created at render time, use the\n<a href=\"#!/api/Ext.Component-cfg-autoEl\" rel=\"Ext.Component-cfg-autoEl\" class=\"docClass\">autoEl</a> config option which takes the form of a\n<a href=\"#!/api/Ext.DomHelper\" rel=\"Ext.DomHelper\" class=\"docClass\">DomHelper</a> specification:\n<pre><code>var myImage = new <a href=\"#!/api/Ext.BoxComponent\" rel=\"Ext.BoxComponent\" class=\"docClass\">Ext.BoxComponent</a>({\n autoEl: {\n tag: 'img',\n src: '/images/my-image.jpg'\n }\n});</code></pre></p>\n\n</div><div class='members'><div class='members-section'><div class='definedBy'>Defined By</div><h3 class='members-title icon-cfg'>Config options</h3><div class='subsection'><div id='cfg-a
|