x 宽的长方形边框。
header : Boolean 为 true 时 header 被创建,反之不被创建,默认情况下,当 header 不处于特殊情况时,如果title 被设置,它会被自动创建,否则不会被创建,如是果 title 被设置,但是 header 为 false,那么 header 也不会被创建。
headerAsText : Boolean 为真是在 header 中显示 title,为假时隐藏它。
默认值为 true. height : Number panel 的高度,默认为 auto。
hideBorders : Boolean 为 true 时,隐藏 panel 的所有子组件的边框,为 false 则尊从子组件原有边框设置。
hideCollapseTool : Boolean 当 collapsibletrue 且 hideCollapseTooltrue 时, 则隐藏控制收缩、 为 伸展的那个按钮, false时就显示它,默认值为 false。
hideMode : String 隐藏模式, 有三种: visibility css visibility offsets negative offset position and displaycss display - defaults to display。
hideParent : Boolean 用于设置是否隐藏组件的容器,即 component.container。
html : String/Object 一个 html 碎片,或者是满足 DomHelper 语法的 object,它用于设置 panel 的 body 部分的内容。
默认值为。
iconCls : String 用于设置 header 上的图标的 class。
例如:.my-icon background: url../images/my-icon.gif 06px no-repeat important id : String 一个为 component 统一分配的 id 值。
默认值为 panel.el.id。
items : Mixed 单个成员或一个子组件的数组。
每个成员都可以是任何从 Ext.Component 继承的 object。
它的成员可以是 component 的引用,这样就会马上 render,也可以是 component 的 config。
这时就会 lazy render。
当然,在 config 中,要注意加上 xtype。
这个东西不用讲了吧。
关于 xtype 的所有取值情况,请见 Ext.Component.xtype 的 config 说明。
里面有讲到。
关于它的值,其实很多例子上都有,如果传一个成员,则像:items:……传多个的话呢,就像:…………。
keys : Object/Array 一个 keyMap config object。
用于设置快捷键的。
默认值为 null。
layout : String 设置 panel.container 的布局。
如果没有设置,那么默认为 Ext.layout.ContainerLayout,合法的值 有:absolute accordion anchor border card column fit form 和 table。
如果要设置布局的细节,则要用到 layoutConfig 了。
layoutConfig : Object 用于设置布局细节的,当 layout 有合法设置时它才有效果。
如果要知道关于这个 config 的设置细节,请见各布局类: Ext.layout.Absolute Ext.layout.Accordion Ext.layout.AnchorLayout Ext.layout.BorderLayout Ext.layout.CardLayout Ext.layout.ColumnLayout Ext.layout.FitLayout Ext.layout.FormLayou Ext.layout.TableLayout listeners : Object 一个 config 对象用于包含一个或多个事件 handler,它被 addListener 使用来注册事件。
maskDisabled : Boolean 是否在 panel.disabled 的时候显示 mask。
为 true 显示。
反之不显示。
默认情况下,panel 哪怕在 disabled 时,它的子元素也显示得很正常,用户根本不知道这个panel 被禁用了,这给用户带来困扰,但是,有了 mask,用户就能得到提示,哦,这个 panel是不可用的,被禁用了。
这给用户带来了新的体验。
minButtonWidth : Number panel 上所有按钮的最小宽度,单位是 px。
monitorResize : Boolean 为 true 时,它自动监控 window 的 resize 事件,并且让 viewport 因此而变化。
这个东西的经典应用就是为 layout 服务,而不用我们手工去调整某些组件的大小来适应窗口大小的变化。
overCls : String 当鼠标放到 panel.el 上面时的 class。
最爽的是,当鼠标 out 时,它会被自动删除,从而产生 hover 效果。
pageX : Number 组件相对于页面的 x 坐标 pageY : Number 组件相对于页面的 y 坐标 plugins : Object/Array 一个对象或对象数组,它为 component 提供自定义的功能。
每个对象都是一个插件的引用,当然,前提是这个插件定义了 init 方法,在 component 初始化时,这个 init 方法将被调用。
没用着。
不说了。
难翻译啊。
re