Ext.grid.GridePanel类(by warrior)

来源:互联网 发布:淘宝号可以买吗 编辑:程序博客网 时间:2024/05/18 07:33

Ext.grid.GridePanel-> 表格面板类
这个类提供了一个基于表格控件的基础的接口.
它的直接父类是:panel类
它的直接子类是:EditorGridePanel类
该类的配置选项有:
enableDragDrop---参数:true||false,指定表格的行是否具有拖拽功能.
animCollapse---待用
autoExpandColumn
autoExpandMax
autoExpandMin
autoHeight---参数:true||false,如果为true则表示表格高度自适应,如果为false则表示要指定高度
autoShow---参数:true||false,检查该表格是不是有隐藏的classes,在渲染的时候去掉隐藏的面板.
baseCls---参数:string,对面板加入css.缺省的是:'x-panel'
cls---参数:string,添加一个额外的可选css class that will add to this component's element,defalut ''.This can be useful for
      adding customized styles to the component or any of its children using standard css rules.
ctCls---参数:string.添加一个额外的可选css class that will be added to this component's container(defaults to '').
                    this can be useful adding customized styles to the container or andy of its childern using
                    standard css rules.
bbar---参数:Ext.Toolbar对象||Aarray,对象指的是toolbar configs,数组指的是 array of button configs
buttons---参数:Array.数组中参数是Ext.Buttonr类的配置变量,添加到面板的底部
buttonAlign---参数:'right'||'left'||'center',添加的按钮在底部的布局
border---参数:true||false,是否显示the panel's body element的边界,如果false就是隐藏它,缺省是显示2px的内嵌边框
colModel---参数:object,The Ext.grid.ColumnModel to use when rendering the grid(required)
              ColumnModel is the default implementation of a columnModel used by the Grid ,this class is initialized
              whith an Array of column config objects.
cm--参数:object,在colModel的缩写形式.
collapsible---参数:true||false,True to make the panel collapsible and have the expand/collapse toggle button
                                automatically rendered into the header tool button area,false to keep the panel
                                statically size with no button (defaults to false).
                                是否在表格面版的header tool button area 添加一个button,这个button可以用来决定面板是否扩展,
                                缺省是没有这个按钮的.
collapseFirst---参数:true||false, True to make sure the collapse/expand toggle button alaways render first(to the left of )
                                  any other tools in the panel's title bar, false to render it last(defaults to true).
                                  是用来决定伸缩按钮的位置,如果为true就排在所有的button(header tool button area)left,第一
                                  个被渲染,如果是flase就排在最后,最后一个被渲染.
collapsed---参数:true||false, True to render the panel collapsed,false to render it expanded(defaults to false).
                              如果为真就将表格面板收起来,如果为假就将表格面板扩展开来---指的是最开始渲染的时候.
columns---参数:Array, An array of columns to auto create a ColumnModel.用一个数组自动创建一个ColumnModel对象.
disableSelection---参数:true||false,如果为true就不能选中表格中的行了.
disabled---参数:true||false,如果为true,整个表格都变恢,不能进行任何操作了.
deferRowRender---参数:true||false,True to enable deferred row rendering.Default is true.(具体什么差别,还是没看出来,唉!)
draggable---参数:true|false,True to enable dragging of the panel(default to false).表格是否可以拖拽.
                             如果想自定义拖拽,an Ext.panel.DD config could also be passed in the conig instead of true.
                             (高级用法,以后再说)
enalbeColumnHide---参数:true|false,True to enable hiding of column whith the header context menu.
enableColumnResize---参数:true|false,如果为true可以将列拉宽一些或窄一些,如果为false,这些列是定死的!