Just some sharing about java open source and life

Ext实现多行多列布局

日期:2009-10-22 11:44 | 作者:JavaChen | 分类目录:Extjs
495 views

Ext实现多行多列布局:

Ext实现多行多列

Ext实现多行多列


var form = new Ext.form.FormPanel({
    frame : true,
    height : 550,
    labelAlign : 'left',
    labelWidth : 110,
    defaultType : 'textfield',
    defaults : {
        width : 110
            allowBlank : false
    },
    items : {
        layout : 'column',
        height : 100,
        items : [{
            columnWidth : .33,
            layout : 'form',
            items : [{
                xtype : 'textfield',
                fieldLabel : '入库合格证号',
                name : 'first',
                anchor : '90%'
            }, {
                xtype : 'textfield',
                fieldLabel : '入库合格证号',
                name : 'company',
                anchor : '90%'
            }, {
                xtype : 'textfield',
                fieldLabel : '有效期截止日期',
                name : 'company',
                anchor : '90%'
            }]
        }, {
            columnWidth : .33,
            layout : 'form',
            items : [{
                xtype : 'textfield',
                fieldLabel : '入库合格证号',
                name : 'last',
                anchor : '95%'
            }, {
                xtype : 'textfield',
                fieldLabel : '入库合格证号',
                name : 'email',
                vtype : 'email',
                anchor : '95%'
            }, {
                xtype : 'textfield',
                fieldLabel : '航天标示码',
                name : 'A',
                anchor : '95%'
            }]
        }, {
            columnWidth : .33,
            layout : 'form',
            items : [{
                xtype : 'textfield',
                fieldLabel : '入库合格证号',
                name : 'last',
                anchor : '95%'
            }, {
                xtype : 'textfield',
                fieldLabel : '入库合格证号',
                name : 'email',
                vtype : 'email',
                anchor : '95%'
            }, {
                xtype : 'textfield',
                fieldLabel : '复验合格证工程型号',
                name : 's',
                anchor : '95%'
            }]
        }]
    },
    buttons : [{
        text : '执行过滤条件',
        handler : function() {
            if (!form.getForm().isValid()) {
                return;
            };
            store.baseParams = {
                xmlFile : getQueryStringValue('xmlFile'),
                condictions :  getCondictionValues()
            };
            store.reload();
            form.getForm().reset();
        }
    }, {
        text : '重置',
        handler : function() {
            form.getForm().reset();
        }
    }]
});
作者:JavaChen | 分类目录:Extjs | 标签:
    • 是啊,公司项目需要,现在接触的是html、javascript和Extjs,不是jsp、ssh之类的,先干一年前端开发再说

回到顶部

无觅相关文章插件,快速提升流量