camel0104 2010-09-20 10:36
浏览 282
已采纳

关于Extjs中FieldSet中的单元格合并的问题



 如上图所示。

我现在的做法如下:

var fieldSet2 = new Ext.form.FieldSet({
        title:'基本信息',
        //width:400,
        height:260,
        columnWidth: 1,
        layout: 'column',
        border: true,
        anchor:'100%',
        labelWidth: 60,
        buttonAlign: 'center',
        items:[{
            columnWidth:.33,
            layout: 'form',
            border:false,
            xtype:'fieldset',
            autoHeight:true,
            defaultType:'textfield',
            items: [
                {
                    xtype:'panel',
                    html:'<center>基本信息</center>'
                }
            ]
        },{
            columnWidth:.67,
            layout: 'form',
            border:false,
            xtype:'fieldset',
            autoHeight:true,
            defaultType:'textfield',
            items: [
                {
                    fieldLabel: '简介',
                    name: 'ccc',
                    anchor:'95%',
                    xtype:'textarea'
                },{
                    fieldLabel: '开始时间',
                    name: 'ccc2',
                    anchor:'95%'
                },{
                    fieldLabel: '结束时间',
                    name: 'ccc2',
                    anchor:'95%'
                },{
                    fieldLabel: '分工界面',
                    name: 'ccc2',
                    anchor:'95%'
                },{
                    fieldLabel: '关键要求',
                    name: 'ccc2',
                    anchor:'95%'
                },{
                    fieldLabel: '前端点位',
                    name: 'ccc2',
                    anchor:'95%'
                },{
                    fieldLabel: '中心点位',
                    name: 'ccc2',
                    anchor:'95%'
                },{
                    fieldLabel: '其它信息',
                    name: 'ccc2',
                    anchor:'95%'
                }
            ]
        }]
    });

 

上面代码所展示的图形如下:



 问题:

1.如果能在我代码基础上实现,请指出需要修改添加的代码块

2.如果用其它方式实现,请给出代码块


由于对Extjs刚起步,需要解答详细些。

  • 写回答

3条回答 默认 最新

  • lizhiyezi 2010-09-20 11:56
    关注

    var fieldSet2 = new Ext.form.FieldSet({
    title : '基本信息',
    // width:400,
    height : 260,
    columnWidth : 1,
    layout : 'border',
    border : true,
    anchor : '100%',
    labelWidth : 60,
    buttonAlign : 'center',
    items : [{
    region : 'west',
    width : 200,
    anchor : '100% 100%',
    xtype : 'fieldset',
    layout : 'fit',
    defaultType : 'textfield',
    items : [{
    xtype : 'panel',
    html : '

    基本信息
    '
    }]
    }, {
    layout : 'form',
    region : 'center',
    border : false,
    xtype : 'fieldset',
    autoHeight : true,
    defaultType : 'textfield',
    items : [{
    fieldLabel : '简介',
    name : 'ccc',
    anchor : '95%',
    xtype : 'textarea'
    }, {
    layout : 'column',
    xtype : 'panel',
    defaults : {
    layout : 'form',
    border : false,
    defaultType : 'textfield',
    columnWidth : .5
    },
    items : [{
    xtype : 'panel',
    items : [{
    fieldLabel : '开始时间',
    name : 'ccc2',
    anchor : '95%'
    }]
    }, {
    xtype : 'panel',
    items : [{
    fieldLabel : '结束时间',
    name : 'ccc2',
    anchor : '95%'
    }]
    }]
    }, {
    fieldLabel : '分工界面',
    name : 'ccc2',
    anchor : '95%'
    }, {
    fieldLabel : '关键要求',
    name : 'ccc2',
    anchor : '95%'
    }, {
    fieldLabel : '前端点位',
    name : 'ccc2',
    anchor : '95%'
    }, {
    fieldLabel : '中心点位',
    name : 'ccc2',
    anchor : '95%'
    }, {
    fieldLabel : '其它信息',
    name : 'ccc2',
    anchor : '95%'
    }]
    }]
    });
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 高价求中通快递查询接口
  • ¥15 解决一个加好友限制问题 或者有好的方案
  • ¥15 关于#java#的问题,请各位专家解答!
  • ¥15 急matlab编程仿真二阶震荡系统
  • ¥20 TEC-9的数据通路实验
  • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
  • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
  • ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
  • ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
  • ¥15 如何实现H5在QQ平台上的二次分享卡片效果?