ITeye博客

FormPanel示例

Panda也编程丶 · 2014-07-21 16:07 · JaveScript · 编程语言 · Markdown

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;
    },

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。