📄 ext.boxcomponent.html
字号:
<!--Mock<link rel="stylesheet" type="text/css" href="http://localhost/ext/resources/css/ext-all.css" /><link rel="stylesheet" type="text/css" href="http://localhost/ext/doc/resources/docs.css"/><link rel="stylesheet" type="text/css" href="http://localhost/ext/doc/resources/style.css"/>--><style type="text/css"> body { overflow: scroll; } /** .mdesc .long { display: block; } */</style><!-- End Mock--><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><div class="body-wrap"> <div class="top-tools"> <a class="inner-link" href="#Ext.BoxComponent-props"><img src="/images/s.gif" class="item-icon icon-prop">Properties</a><a class="inner-link" href="#Ext.BoxComponent-methods"><img src="/images/s.gif" class="item-icon icon-method">Methods</a><a class="inner-link" href="#Ext.BoxComponent-events"><img src="/images/s.gif" class="item-icon icon-event">Events</a><a class="inner-link" href="#Ext.BoxComponent-configs"><img src="/images/s.gif" class="item-icon icon-config">Config Options</a><a class="bookmark" href="../docs/?class=Ext.BoxComponent"><img src="/images/s.gif" class="item-icon icon-fav">Direct Link</a> </div><h1>Class Ext.BoxComponent</h1> <table cellspacing="0"> <!-- <tr> <td class="label"> Package: </td> <td class="hd-info"> </td> </tr> --> <tr> <td class="label"> Defined In: </td> <td class="hd-info"> BoxComponent.js </td> </tr> <tr> <td class="label"> Class: </td> <td class="hd-info"> Ext.BoxComponent </td> </tr> <tr> <td class="label"> Extends: </td> <td class="hd-info"> Ext.Component </td> </tr> </table> <div class="description"> 任何使用矩形容器的作可视化组件<a href="###" onClick="alert('Ext.Component');">Ext.Component</a>的基类。
所有的容器类都应从BoxComponent继承,从而每个嵌套的Ext布局容器都会紧密地协调工作 </div> <div class="hr"> </div> <a id="Ext.BoxComponent-configs"></a> <h2>配置项</h2> <table cellspacing="0" class="member-table"> <tr> <th class="sig-header" colspan="2"> 配置项 </th> <th class="msource-header"> 定义者 </th> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="height-header"></a> <b>height</b> : Number <div class="mdesc"> <div class="short"> 此组件的高度(单位象素)(缺省为auto)。
</div> <div class="long"> 此组件的高度(单位象素)(缺省为auto)。
</div> </div> </td> <td class="msource"> BoxComponent </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="width-header"></a> <b>width</b> : Number <div class="mdesc"> <div class="short"> 此组件的宽度(单位象素)(缺省为auto)。
</div> <div class="long"> 此组件的宽度(单位象素)(缺省为auto)。
</div> </div> </td> <td class="msource"> BoxComponent </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="autoHeight-header"></a> <b>autoHeight</b> : Boolean <div class="mdesc"> <div class="short"> True表示为使用height:'auto',false表示为使用固定... </div> <div class="long"> True表示为使用height:'auto',false表示为使用固定高度(缺省为false)。
</div> </div> </td> <td class="msource"> BoxComponent </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="autoWidth-header"></a> <b>autoWidth</b> : Boolean <div class="mdesc"> <div class="short"> True表示为使用width:'auto',false表示为使用固定宽... </div> <div class="long"> True表示为使用width:'auto',false表示为使用固定宽度(缺省为false)。
</div> </div> </td> <td class="msource"> BoxComponent </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="deferHeight-header"></a> <b>deferHeight</b> : Boolean <div class="mdesc"> <div class="short"> True表示为根据外置的组件延时计算高度,false表示允许该组件自行... </div> <div class="long"> True表示为根据外置的组件延时计算高度,false表示允许该组件自行设置高度(缺省为false)。
</div> </div> </td> <td class="msource"> BoxComponent </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="id-header"></a> <b>id</b> : String <div class="mdesc"> <div class="short"> 唯一的组件id(默认为自动分配的id)。 </div> <div class="long"> 唯一的组件id(默认为自动分配的id)。 </div> </div> </td> <td class="msource"> <!--如果这不是同个namespace下--> <a ext:cls="Ext.Component" ext:member="#method-id" href="output/Ext.Component.html#method-id"> Component </a> </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="xtype-header"></a> <b>xtype</b> : String <div class="mdesc"> <div class="short"> The registered xtype to create. 用于... </div> <div class="long"> The registered xtype to create. 用于登记一个xtype。 This config option is not used when passing a config object into a constructor. This config option is used only when lazy instantiation is being used, and a child item of a Container is being specified not as a fully instantiated Component, but as a <i>Component config object</i>. The xtype will be looked up at render time up to determine what type of child Component to create.<br><br> The predefined xtypes are listed {@link Ext.Component here}. <br><br> If you subclass Components to create your own Components, you may register them using <a href="###" onClick="alert('Ext.ComponentMgr#registerType');">Ext.ComponentMgr#registerType</a> in order to be able to take advantage of lazy instantiation and rendering. </div> </div> </td> <td class="msource"> <!--如果这不是同个namespace下--> <a ext:cls="Ext.Component" ext:member="#method-xtype" href="output/Ext.Component.html#method-xtype"> Component </a> </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="cls-header"></a> <b>cls</b> : String <div class="mdesc"> <div class="short"> 一个可选添加的CSS样式类,加入到组件的容器上(默认为'')。 这为容... </div> <div class="long"> 一个可选添加的CSS样式类,加入到组件的容器上(默认为'')。 这为容器或容器的子节点加入标准CSS规则提供了方便。 </div> </div> </td> <td class="msource"> <!--如果这不是同个namespace下--> <a ext:cls="Ext.Component" ext:member="#method-cls" href="output/Ext.Component.html#method-cls"> Component </a> </td> </tr> <tr class="config-row expandable"> <td class="micon">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -