FormPanel示例

initConditionForm : function(){
        var form = this.form
        if(!form){
            var form = new Ext.form.FormPanel({
                            id : "detailConForm",
                            labelAlign : "right",
                            border : true,
                            autoWidth : true,
                            baseCls : "x-plain",
                            width : this.width,
                            padding : 5,
                            autoHeight : true,
                            items : [{
                                    xtype : "textfield",
                                    name:'manageUnit',
                                    fieldLabel:'管辖机构',
                                    blankText:'管辖机构必填',
                                    disabled : true,
                                    allowBlank:false,
                                    labelWidth : 70,
                                    width : 200
                                }]
                        })
           
            form.on("afterrender", this.afterRenderForm , this);
            this.form = form
        }
        return form;
    },

你可能感兴趣的:(FormPanel)