📄 ext.layout.fitlayout.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.layout.FitLayout-props"><img src="/images/s.gif" class="item-icon icon-prop">Properties</a><a class="inner-link" href="#Ext.layout.FitLayout-methods"><img src="/images/s.gif" class="item-icon icon-method">Methods</a><a class="inner-link" href="#Ext.layout.FitLayout-events"><img src="/images/s.gif" class="item-icon icon-event">Events</a><a class="inner-link" href="#Ext.layout.FitLayout-configs"><img src="/images/s.gif" class="item-icon icon-config">Config Options</a><a class="bookmark" href="../docs/?class=Ext.layout.FitLayout"><img src="/images/s.gif" class="item-icon icon-fav">Direct Link</a> </div><h1>Class Ext.layout.FitLayout</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"> FitLayout.js </td> </tr> <tr> <td class="label"> Class: </td> <td class="hd-info"> Ext.layout.FitLayout </td> </tr> <tr> <td class="label"> Extends: </td> <td class="hd-info"> Ext.layout.ContainerLayout </td> </tr> </table> <div class="description"> <p>
这是包含单个项布局的基类,这种布局会在容器上自动铺开以填充整个容器。
应通过继承此类或设置{@link Ext.Container#layout}的配置layout:'fit' 的方式创建,一般很少通过关键字new直接使用。
</p>
<p>
FitLayout没有直接的配置选项(不同于继承)
要采用FitLayout填充容器的面板,只需设置容器的layout:'fit'和加入一个面板。
即使容器指定了多个面板,只会渲染第一个面板。用法举例:</p>
<pre><code>
var p = new Ext.Panel({
title: 'Fit Layout',
layout:'fit',
items: {
title: '内层面板',
html: '<p>这是内层面板的内容</p>',
border: false
}
});
</code></pre>
</div> <div class="hr"> </div> <a id="Ext.layout.FitLayout-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="CSS-header"></a> <b>CSS</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.layout.ContainerLayout" ext:member="#method-CSS" href="output/Ext.layout.ContainerLayout.html#method-CSS"> ContainerLayout </a> </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="renderHidden-header"></a> <b>renderHidden</b> : Boolean <div class="mdesc"> <div class="short"> True表示为在渲染时隐藏包含的每一项(缺省为false)。 </div> <div class="long"> True表示为在渲染时隐藏包含的每一项(缺省为false)。 </div> </div> </td> <td class="msource"> <!--如果这不是同个namespace下--> <a ext:cls="Ext.layout.ContainerLayout" ext:member="#method-renderHidden" href="output/Ext.layout.ContainerLayout.html#method-renderHidden"> ContainerLayout </a> </td> </tr> </table> <a id="Ext.layout.FitLayout-props"></a> <h2>公告属性</h2> <table cellspacing="0" class="member-table"> <tr> <th colspan="2"> 属性 </th> <th> 定义者 </th> </tr> <tr class="property-row inherited expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="activeItem-activeItem"></a> <b> activeItem: activeItem</b> <div class="mdesc"> <div class="short"> 一个已激活Ext.Component的引用 例如,if(myPane... </div> <div class="long"> 一个已激活<a href="###" onClick="alert('Ext.Component');">Ext.Component</a>的引用 例如,if(myPanel.layout.activeItem.id == 'item-1') { ... }。 activeItem只会作用在布局样式上。(像<a href="###" onClick="alert('Ext.layout.Accordion');">Ext.layout.Accordion</a>, <a href="###" onClick="alert('Ext.layout.CardLayout');">Ext.layout.CardLayout</a>和<a href="###" onClick="alert('Ext.layout.FitLayout');">Ext.layout.FitLayout</a>)。只读的。 Related to <a href="###" onClick="alert('Ext.Container#activeItem');">Ext.Container#activeItem</a>. </div> </div> </td> <td class="msource"> <!--如果这不是同个namespace下--><a ext:cls="Ext.layout.ContainerLayout" ext:member="#method-activeItem" href="output/Ext.layout.ContainerLayout.html#method-activeItem"> ContainerLayout </a> </td> </tr> </table> <a id="Ext.layout.FitLayout-methods"></a> <h2>公共方法</h2> <table cellspacing="0" class="member-table"> <tr> <th class="sig-header" colspan="2"> 方法 </th> <th class="msource-header"> 定义者 </th> </tr> </table> <a id="Ext.layout.FitLayout-events"></a> <a id="Ext.Ajax-events"></a> <h2>公告事件</h2> <div class="no-members"> 这个类没公共的事件。 </div> </div>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -