摘要: 一、Table布局由类Ext.layout.TableLayout定义,类以于html中的table,可以对行或列进行合并。layoutConfig使用columns指定父容器分成3列,rowspan合并行数目。colspan合并列数目。二、应用举例CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Ext.onReady(function(){var_panel=newExt.Panel({title:"人员信息", 阅读全文
posted @ 2009-10-07 22:12 EasyPass 阅读(1077) 评论(0) 推荐(0) 编辑
摘要: 一、Accordion布局由类Ext.layout.Accordion定义,表示可折叠的布局,点击每一个子元素的头部名称或右边的按钮,则会展开该面板,并收缩其它已经展开的面板。layoutConfig:true表示在执行展开折叠时启动动画效果,默认值为false。二、应用举例CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Ext.onReady(function(){var_panel=newExt.Panel({title:&quo 阅读全文
posted @ 2009-10-07 21:58 EasyPass 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 一、Form布局由类Ext.layout.FormLayout定义,名称为form,是一种专门用于管理表单中输入字段的布局,这种布局主要用于在程序中创建表单字段或表单元素等使用。hideLabels:tru表示隐藏标签,默认为false。labelAlign:标签队齐方式left、right、center,默认为left。CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Ext.onReady(function(){var_panel= 阅读全文
posted @ 2009-10-07 19:51 EasyPass 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 一、Fit布局,子元素将自动填满整个父容器(对元素设置宽度无效),如果容器组件中有多个子元素,则只会显示第一个子元素。二、应用举例CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Ext.onReady(function(){newExt.Panel({renderTo:Ext.getBody(),title:"容器组件",layout:"fit",width:500,height:100,ite 阅读全文
posted @ 2009-10-07 19:22 EasyPass 阅读(616) 评论(0) 推荐(0) 编辑
摘要: 一、Border布局由类Ext.layout.BorderLayout定义,布局名称为border。该布局把容器分成东南西北中五个区域,分别由east,south,west,north,cente来表示,在往容器中添加子元素的时候,我们只需要指定这些子元素所在的位置,Border布局会自动把子元素放到布局指定的位置。二、应用举例Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Ext.onReady(function(){newExt.View 阅读全文
posted @ 2009-10-07 19:15 EasyPass 阅读(1970) 评论(0) 推荐(0) 编辑